From fec476cc80e21fedafba847e73a008e5cafd695a Mon Sep 17 00:00:00 2001 From: tomasz1986 Date: Sat, 8 Jan 2022 16:51:29 +0100 Subject: [PATCH] gui: Sort language names vertically and don't truncate on small screens (#8101) --- gui/default/assets/css/overrides.css | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/gui/default/assets/css/overrides.css b/gui/default/assets/css/overrides.css index 252bae92c..aa4a1e7b1 100644 --- a/gui/default/assets/css/overrides.css +++ b/gui/default/assets/css/overrides.css @@ -166,16 +166,13 @@ table.table-auto td { display: none; } -*[language-select] > .dropdown-menu { +li[language-select] > .dropdown-menu { + column-count: 2; + column-gap: 0; width: 450px; } -*[language-select] > .dropdown-menu > li { - float: left; - width: 50%; -} - -*[language-select] > .dropdown-menu > li > a { +li[language-select] > .dropdown-menu > li > a { overflow: hidden; text-overflow: ellipsis; } @@ -351,17 +348,19 @@ ul.three-columns li, ul.two-columns li { border-radius: 2px; } - *[language-select] { + li[language-select] { position: static !important; } - *[language-select] > .dropdown-menu { + li[language-select] > .dropdown-menu { + column-count: auto; margin-left: 15px; margin-right: 15px; margin-top: -12px !important; max-width: 450px; - height: 265px; overflow-y: scroll; + /* height of 5.5 elements + negative margin-top */ + height: 276px; } table.table-condensed td,