"Bind preset to connection" toggle (#3999)

* Implement THE TOGGLE

* Don't force reconnect on preset switch if toggle off

* Don't clear custom models list either
This commit is contained in:
Cohee
2025-05-17 20:40:58 +03:00
committed by GitHub
parent 213a619b33
commit 864a733663
4 changed files with 171 additions and 95 deletions
+12
View File
@@ -498,3 +498,15 @@ label[for="trim_spaces"]:not(:has(input:checked)) small {
#banned_tokens_block_ooba:not(:has(#send_banned_tokens_textgenerationwebui:checked)) #banned_tokens_controls_ooba {
filter: brightness(0.5);
}
#bind_preset_to_connection:checked ~ .toggleOff {
display: none;
}
#bind_preset_to_connection:not(:checked) ~ .toggleOn {
display: none;
}
label[for="bind_preset_to_connection"]:has(input:checked) {
color: var(--active);
}