example translation in same line

This commit is contained in:
2020-02-01 22:14:18 +01:00
parent 9dd9ac7854
commit a03deb3737
2 changed files with 8 additions and 7 deletions

View File

@@ -140,9 +140,9 @@ class View:
h("div.example-dot", dot_attr, ""),
h(example_tag, {}, [
h("span.example-text", {"on": {"click": msg(ShowExampleMenu(example))} }, example_content),
h("div.example-clusters", {}, show_toggle_cluster_buttons(sense, example)),
h("div.example-translation-list", {}, [
h("div.example-translation", {}, View.view_translations(example.translations, example, model))])])])
h("div.example-translation", {}, View.view_translations(example.translations, example, model))]),
h("div.example-clusters", {}, show_toggle_cluster_buttons(sense, example))])])
@staticmethod
def view_translations(translations, parent, model):