example translation in same line

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

View File

@ -187,15 +187,16 @@
margin-right: 1em; margin-right: 1em;
} }
.example-translation-list {
float: left;
}
.example-translation { .example-translation {
margin-left: 1em; margin-left: 1em;
&:before {
content: '↪';
margin-right: 0.2em;
}
} }
.example-text { .example-text {
float: left;
._hoverable(); ._hoverable();
.example-text-1 { .example-text-1 {
@ -242,7 +243,7 @@
.add-button { .add-button {
padding: 0 .5em; padding: 0 .5em;
margin-left: .3em; margin: 0 0 0 0.3em;
background-color: @aqua; background-color: @aqua;
color: @black; color: @black;
} }

View File

@ -140,9 +140,9 @@ class View:
h("div.example-dot", dot_attr, ""), h("div.example-dot", dot_attr, ""),
h(example_tag, {}, [ h(example_tag, {}, [
h("span.example-text", {"on": {"click": msg(ShowExampleMenu(example))} }, example_content), 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-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 @staticmethod
def view_translations(translations, parent, model): def view_translations(translations, parent, model):