From 7d181fd2e8c2e95b3b3f00eb10913c94e973ed36 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Mon, 8 May 2023 15:16:55 +0300 Subject: [PATCH] Optimize character list layouts --- public/index.html | 23 ++++++++++------------- public/scripts/tags.js | 1 + public/style.css | 11 ++++++++--- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/public/index.html b/public/index.html index d1280c7bd..5013d0ced 100644 --- a/public/index.html +++ b/public/index.html @@ -1857,27 +1857,24 @@
-
+
-
- - +
-
diff --git a/public/scripts/tags.js b/public/scripts/tags.js index cc6faff99..796a8f0d3 100644 --- a/public/scripts/tags.js +++ b/public/scripts/tags.js @@ -18,6 +18,7 @@ const TAG_LOGIC_AND = true; // switch to false to use OR logic for combining tag const CHARACTER_SELECTOR = '#rm_print_characters_block > div'; const ACTIONABLE_TAGS = { + VIEW: { id: 2, name: 'Manage tags', color: 'rgba(150, 100, 100, 0.5)', action: onViewTagsListClick, icon: 'fa-solid fa-tags' }, FAV: { id: 1, name: 'Show only favorites', color: 'rgba(255, 255, 0, 0.5)', action: applyFavFilter, icon: 'fa-solid fa-star' }, GROUP: { id: 0, name: 'Show only groups', color: 'rgba(100, 100, 100, 0.5)', action: filterByGroups, icon: 'fa-solid fa-users' }, } diff --git a/public/style.css b/public/style.css index fa134b0ad..0bc463af3 100644 --- a/public/style.css +++ b/public/style.css @@ -1059,20 +1059,25 @@ select option:not(:checked) { #form_character_search_form { display: flex; flex-direction: row; - align-items: center; + align-items: stretch; margin: 5px; - column-gap: 10px; + column-gap: 5px; +} + +#form_character_search_form .menu_button { + margin: 0; } #character_sort_order { margin: 0; flex: 1; + height: auto; } #character_search_bar { + margin: 0; flex: 1; padding-left: 0.75em; - margin: 0; } input[type=search]::-webkit-search-cancel-button {