From 02fd9f658a179aaac4d6a1cb0d59e4471a96acdf Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 29 Mar 2021 20:10:26 +0100 Subject: [PATCH] added groups to correct title and input spacing --- src/js/popups/word-filter-popup.js | 4 +++- src/sass/style.scss | 21 +++++++++++++-------- static/index.html | 30 +++++++++++++++++++----------- 3 files changed, 35 insertions(+), 20 deletions(-) diff --git a/src/js/popups/word-filter-popup.js b/src/js/popups/word-filter-popup.js index 88b2c58a9..47024d696 100644 --- a/src/js/popups/word-filter-popup.js +++ b/src/js/popups/word-filter-popup.js @@ -12,7 +12,9 @@ export async function showWordFilterPopup() { `); }); - $("#languageList").select2(); + $("#languageList").select2({ + width: "100%", + }); } function hideWordFilterPopup() { diff --git a/src/sass/style.scss b/src/sass/style.scss index 1a5f61541..ed63fd971 100644 --- a/src/sass/style.scss +++ b/src/sass/style.scss @@ -636,23 +636,28 @@ a:hover { gap: 1rem; width: 400px; + input { + width: 100%; + } + + .group { + display: grid; + gap: 0.5rem; + } + .lengthgrid { display: grid; grid-template-columns: 1fr 1fr; - grid-template-rows: 1fr 1fr; - gap: 0.2rem; + grid-template-rows: auto 1fr; + column-gap: 1rem; } - .wordLength { - width: 10rem; - } - - .wftip { + .tip { color: var(--sub-color); font-size: 0.8rem; } - .wfload { + .loadingIndicator { justify-self: center; } } diff --git a/static/index.html b/static/index.html index dc8caacdd..a061ff563 100644 --- a/static/index.html +++ b/static/index.html @@ -146,11 +146,13 @@