only api format for ooba, more visible checkboxes

This commit is contained in:
RossAscends 2023-11-08 14:08:51 +09:00
parent 865256f5c0
commit 00c029a65a
2 changed files with 7 additions and 6 deletions

View File

@ -148,9 +148,9 @@ async function selectPreset(name) {
function formatTextGenURL(value) { function formatTextGenURL(value) {
try { try {
const url = new URL(value); const url = new URL(value);
if (url.pathname === '/api') { if (url.pathname === '/api' && textgenerationwebui_settings.type === textgen_types.OOBA) {
url.pathname = '/'; url.pathname = '/';
toastr.info('Legacy API URL detected, please make sure you updated ooba-webui to the latest version.'); toastr.info(`Legacy API URL detected, please make sure you updated ooba-webui to the latest version.`);
} }
return url.toString(); return url.toString();
} catch { } // Just using URL as a validation check } catch { } // Just using URL as a validation check

View File

@ -26,6 +26,7 @@
--grey30: rgb(75, 75, 75); --grey30: rgb(75, 75, 75);
--grey50: rgb(125, 125, 125); --grey50: rgb(125, 125, 125);
--grey5020a: rgba(125, 125, 125, 0.2); --grey5020a: rgba(125, 125, 125, 0.2);
--grey5050a: rgba(125, 125, 125, 0.5);
--grey70: rgb(175, 175, 175); --grey70: rgb(175, 175, 175);
--grey75: rgb(190, 190, 190); --grey75: rgb(190, 190, 190);
@ -2167,7 +2168,7 @@ input[type='checkbox']:not(#nav-toggle):not(#rm_button_panel_pin):not(#lm_button
overflow: hidden; overflow: hidden;
border-radius: 3px; border-radius: 3px;
border: 1px solid var(--SmartThemeBorderColor); border: 1px solid var(--SmartThemeBorderColor);
background-color: var(--SmartThemeBlurTintColor); background-color: var(--SmartThemeBodyColor);
box-shadow: inset 0 0 2px 0 var(--SmartThemeShadowColor); box-shadow: inset 0 0 2px 0 var(--SmartThemeShadowColor);
cursor: pointer; cursor: pointer;
transform: translateY(-0.075em); transform: translateY(-0.075em);
@ -2185,7 +2186,7 @@ input[type="checkbox"]:not(#nav-toggle):not(#rm_button_panel_pin):not(#lm_button
height: 0.65em; height: 0.65em;
transform: scale(0); transform: scale(0);
transition: 120ms transform ease-in-out; transition: 120ms transform ease-in-out;
box-shadow: inset 1em 1em var(--SmartThemeBodyColor); box-shadow: inset 1em 1em var(--SmartThemeBlurTintColor);
transform-origin: bottom left; transform-origin: bottom left;
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
} }
@ -2852,7 +2853,7 @@ body .ui-widget-content {
.ui-slider { .ui-slider {
margin: 5px 0; margin: 5px 0;
outline: 1px solid var(--grey5020a); outline: 1px solid var(--grey5050a);
border-radius: 5px !important; border-radius: 5px !important;
} }
@ -3716,4 +3717,4 @@ a {
height: 100vh; height: 100vh;
z-index: 9999; z-index: 9999;
} }
} }