From d974866ed76b36b9d294cba4ef5febc9a0abfa8e Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 22 Aug 2023 00:40:39 +0300 Subject: [PATCH 1/2] Fix missing space in ST version string --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index ba00d98d5..8ba7ecf54 100644 --- a/public/script.js +++ b/public/script.js @@ -559,7 +559,7 @@ async function getClientVersion() { let displayVersion = `SillyTavern ${data.pkgVersion}`; if (data.gitRevision && data.gitBranch) { - displayVersion += ` '${data.gitBranch}'(${data.gitRevision})`; + displayVersion += ` '${data.gitBranch}' (${data.gitRevision})`; } $('#version_display').text(displayVersion); From 92686d4ba8f10f3f96577d01e9e2a44a85d9bb64 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 22 Aug 2023 01:51:31 +0300 Subject: [PATCH 2/2] Optimize WI editor header. Add entries search --- public/css/mobile-styles.css | 11 +-------- public/css/world-info.css | 35 +++++--------------------- public/index.html | 48 ++++++++++++++---------------------- public/scripts/filters.js | 20 ++++++++++++--- public/scripts/power-user.js | 19 ++++++++++++++ public/scripts/world-info.js | 40 ++++++++++++++---------------- public/style.css | 6 +++++ 7 files changed, 86 insertions(+), 93 deletions(-) diff --git a/public/css/mobile-styles.css b/public/css/mobile-styles.css index 1db0d9426..a53758a8f 100644 --- a/public/css/mobile-styles.css +++ b/public/css/mobile-styles.css @@ -63,15 +63,6 @@ display: none; } - /* #world_popup_header { - flex-direction: column; - align-items: flex-start; - } */ - - #world_popup_header .world_popup_expander { - display: none; - } - body { touch-action: none; overflow: hidden; @@ -416,4 +407,4 @@ #horde_model { height: unset; } -} \ No newline at end of file +} diff --git a/public/css/world-info.css b/public/css/world-info.css index d747d90b8..425b4f83b 100644 --- a/public/css/world-info.css +++ b/public/css/world-info.css @@ -41,39 +41,12 @@ user-select: none; } -.world_popup_logo_block { - display: flex; - align-items: center; -} - -#world_popup_header { - display: flex; - flex-direction: row; - align-items: center; -} - -#world_popup_header h3 { - margin: 0; -} - #form_rename_world { display: flex; align-items: center; gap: 5px; } -#form_rename_world input[type="submit"] { - cursor: pointer; -} - -#form_world_import { - display: none; -} - -#world_popup_header h5 { - display: inline-block; -} - .world_popup_expander { flex-grow: 1; } @@ -89,8 +62,8 @@ } #world_popup_entries_list:empty::before { - content: 'No entries exist. Try creating one!'; - font-size: calc(var(--mainFontSize) + .5rem); + content: 'No entries found.'; + font-size: calc(var(--mainFontSize) + .1rem); font-weight: bolder; width: 100%; height: 100%; @@ -183,3 +156,7 @@ white-space: nowrap; width: 10em; } + +#world_info_search { + width: 10em; +} diff --git a/public/index.html b/public/index.html index 252fc114f..59ea701aa 100644 --- a/public/index.html +++ b/public/index.html @@ -2506,35 +2506,25 @@