From 2e23e789373b7f51180644ff7fd7131e009d1227 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 1 Jun 2024 02:05:42 +0300 Subject: [PATCH] Update WI top block layout --- public/css/mobile-styles.css | 3 +- public/css/select2-overrides.css | 10 ++ public/index.html | 209 ++++++++++++++++--------------- public/style.css | 15 ++- 4 files changed, 135 insertions(+), 102 deletions(-) diff --git a/public/css/mobile-styles.css b/public/css/mobile-styles.css index 0e5a7f0c1..dca2c8fe8 100644 --- a/public/css/mobile-styles.css +++ b/public/css/mobile-styles.css @@ -117,7 +117,8 @@ max-width: unset; } - #wiActivationSettings { + #wiActivationSettings, + #wiTopBlock { flex-direction: column; } diff --git a/public/css/select2-overrides.css b/public/css/select2-overrides.css index 776bf48ed..9598acb51 100644 --- a/public/css/select2-overrides.css +++ b/public/css/select2-overrides.css @@ -199,6 +199,8 @@ span.select2.select2-container .select2-selection__choice__remove:hover { transition: background-color 0.3s; color: var(--SmartThemeBodyColor); background-color: var(--black50a); + white-space: break-spaces; + word-break: break-all; } .select2_choice_clickable_buttonstyle+span.select2-container .select2-selection__choice__display:hover { @@ -218,6 +220,14 @@ span.select2.select2-container .select2-selection__choice__remove:hover { /* Fix weird styling choice or huge margin around selected options */ margin-block-start: 2px; margin-block-end: 2px; + display: flex; + align-items: center; + flex-wrap: wrap; + row-gap: 5px; +} + +.select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-selection__choice { + margin-top: 0px; } .select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-search__field { diff --git a/public/index.html b/public/index.html index f7e47502a..efc4f2c9e 100644 --- a/public/index.html +++ b/public/index.html @@ -3399,108 +3399,117 @@
-
-
- Active World(s) for all chats +
+
+
+ Active World(s) for all chats +
+
+ +
-
- -
-
-
-
- Activation Settings -
-
-
-
-
-
- - Scan Depth - - - -
- -
- - Context % - - - -
- -
- - Budget Cap -
-
- - -
- -
- - Min Activations - - - -
- -
- - Max Depth -
-
- - -
- -
- - Insertion Strategy - - -
+
+
+ + Global World Info/Lorebook activation settings + +
+
+
+ Click to expand +
-
- - - - - +
+
+
+
+ + Scan Depth + + + +
+ +
+ + Context % + + + +
+ +
+ + Budget Cap +
+
+ + +
+ +
+ + Min Activations + + + +
+ +
+ + Max Depth +
+
+ + +
+ +
+ + Insertion Strategy + + +
+
+
+ + + + + +
+
diff --git a/public/style.css b/public/style.css index 6f7d25d1b..c4f0ee24f 100644 --- a/public/style.css +++ b/public/style.css @@ -4482,6 +4482,18 @@ a { transition: all 250ms; } +.standoutHeader.inline-drawer-header { + padding: 5px; + margin-bottom: 0; +} + +.standoutHeader~.inline-drawer-content { + border: 1px solid var(--SmartThemeBorderColor); + padding: 5px; + border-radius: 10px; + background-color: var(--black30a); +} + #user-settings-block [name="MiscellaneousToggles"], #CustomCSS-block, #CustomCSS-textAreaBlock { @@ -4497,7 +4509,8 @@ a { } #extensions_settings .inline-drawer-toggle.inline-drawer-header:hover, -#extensions_settings2 .inline-drawer-toggle.inline-drawer-header:hover { +#extensions_settings2 .inline-drawer-toggle.inline-drawer-header:hover, +.standoutHeader.inline-drawer-header:hover { filter: brightness(150%); }