From 8a4cf86b6560106026f28ba6ba0f8ca8d07ba306 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 15 Feb 2025 00:28:38 +0200 Subject: [PATCH] Integrate killswitch into the block --- public/css/toggle-dependent.css | 4 ++++ public/index.html | 34 +++++++++++++++++------------- public/scripts/preset-manager.js | 1 + public/scripts/textgen-settings.js | 9 ++++---- public/style.css | 2 +- 5 files changed, 29 insertions(+), 21 deletions(-) diff --git a/public/css/toggle-dependent.css b/public/css/toggle-dependent.css index 967aa55e6..59c2e9a28 100644 --- a/public/css/toggle-dependent.css +++ b/public/css/toggle-dependent.css @@ -493,3 +493,7 @@ label[for="trim_spaces"]:not(:has(input:checked)) small { #mistralai_other_models:empty { display: none; } + +#banned_tokens_block_ooba:not(:has(#send_banned_tokens_textgenerationwebui:checked)) #banned_tokens_controls_ooba { + filter: brightness(0.5); +} diff --git a/public/index.html b/public/index.html index d1a6db538..54a9c143f 100644 --- a/public/index.html +++ b/public/index.html @@ -1621,30 +1621,34 @@