From: Mischa POSLAWSKY Date: Fri, 15 Oct 2021 11:29:37 +0000 (+0200) Subject: word/edit: align translations list, last item right X-Git-Tag: v1.13~143 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/6bc896dcaee8f907d4fb46e14720f8b5a51418fa word/edit: align translations list, last item right --- diff --git a/word/edit.plp b/word/edit.plp index f7d3948..d7f093a 100644 --- a/word/edit.plp +++ b/word/edit.plp @@ -265,7 +265,7 @@ for my $col (@wordcols) { } if (not $row->{ref}) { - printf '
    • ', + printf '
      • ', 'trans', 'Translations'; my @children = !$row->{id} ? () : $db->select(word => '*', {ref => $row->{id}}, 'lang, id')->hashes; diff --git a/word/editor.css b/word/editor.css index f376935..1e0dc5b 100644 --- a/word/editor.css +++ b/word/editor.css @@ -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;