word/edit: align translations list, last item right
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 15 Oct 2021 11:29:37 +0000 (13:29 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 25 Oct 2021 14:33:21 +0000 (16:33 +0200)
word/edit.plp
word/editor.css

index f7d39485c992ae1f60373d2ca445534772122cd0..d7f093a9e3c59581570fdcf6bb4b7dd0088320cf 100644 (file)
@@ -265,7 +265,7 @@ for my $col (@wordcols) {
 }
 
 if (not $row->{ref}) {
-       printf '<li><label for="%s">%s</label><div><ul class="inline" id="%1$s">',
+       printf '<li><label for="%s">%s</label><div><ul class="inline multiinput" id="%1$s">',
                'trans', 'Translations';
        my @children = !$row->{id} ? () :
                $db->select(word => '*', {ref => $row->{id}}, 'lang, id')->hashes;
index f37693528647f54fd91da3e85f651fd6d1593ea4..1e0dc5b80a085b1347370f01b6ae2ad7dd527e6b 100644 (file)
@@ -80,6 +80,11 @@ h1 {
 }
 .inline.multiinput {
        flex-wrap: wrap;
+       justify-content: space-between;
+}
+.inline.multiinput > :last-child {
+       text-align: right;
+       flex-grow: 1;
 }
 .multiinput > input {
        width: 10em;