mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-09 08:38:53 +01:00
make AF panel toggles red and opaque when disabled
This commit is contained in:
parent
53424d4c8e
commit
020741d78b
@ -3248,25 +3248,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="InstructSettingsColumn" class="flex-container flexNoGap flexFlowColumn flex1">
|
<div id="InstructSettingsColumn" class="flex-container flexNoGap flexFlowColumn flex1">
|
||||||
|
<h4 class="standoutHeader title_restorable justifySpaceBetween">
|
||||||
|
<div class="flex-container">
|
||||||
|
<span data-i18n="Instruct Template">Instruct Template</span>
|
||||||
|
<a href="https://docs.sillytavern.app/usage/core-concepts/instructmode/" class="notes-link" target="_blank">
|
||||||
|
<span class="fa-solid fa-circle-question note-link-span"></span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="flex-container">
|
||||||
|
<label for="instruct_bind_to_context" class="checkbox_label flex1" title="Bind to Context
If enabled, Context templates will be automatically selected based on selected Instruct template name or by preference." data-i18n="[title]instruct_bind_to_context">
|
||||||
|
<input id="instruct_bind_to_context" type="checkbox" style="display:none;" />
|
||||||
|
<small><i class="fa-solid fa-link menu_button margin0"></i></small>
|
||||||
|
</label>
|
||||||
|
<label id="instruct_enabled_label"for="instruct_enabled" class="checkbox_label flex1" title="Enable Instruct Mode" data-i18n="[title]instruct_enabled">
|
||||||
|
<input id="instruct_enabled" type="checkbox" style="display:none;" />
|
||||||
|
<small><i class="fa-solid fa-power-off menu_button margin0"></i></small>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</h4>
|
||||||
<div id="instructSettingsBlock">
|
<div id="instructSettingsBlock">
|
||||||
<h4 class="standoutHeader title_restorable justifySpaceBetween">
|
|
||||||
<div class="flex-container">
|
|
||||||
<span data-i18n="Instruct Template">Instruct Template</span>
|
|
||||||
<a href="https://docs.sillytavern.app/usage/core-concepts/instructmode/" class="notes-link" target="_blank">
|
|
||||||
<span class="fa-solid fa-circle-question note-link-span"></span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="flex-container">
|
|
||||||
<label for="instruct_bind_to_context" class="checkbox_label flex1" title="Bind to Context
If enabled, Context templates will be automatically selected based on selected Instruct template name or by preference." data-i18n="[title]instruct_bind_to_context">
|
|
||||||
<input id="instruct_bind_to_context" type="checkbox" style="display:none;" />
|
|
||||||
<small><i class="fa-solid fa-link menu_button margin0"></i></small>
|
|
||||||
</label>
|
|
||||||
<label for="instruct_enabled" class="checkbox_label flex1" title="Enable Instruct Mode" data-i18n="[title]instruct_enabled">
|
|
||||||
<input id="instruct_enabled" type="checkbox" style="display:none;" />
|
|
||||||
<small><i class="fa-solid fa-power-off menu_button margin0"></i></small>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</h4>
|
|
||||||
|
|
||||||
<div class="flex-container" title="Select your current Instruct Template" data-i18n="[title]Select your current Instruct Template">
|
<div class="flex-container" title="Select your current Instruct Template" data-i18n="[title]Select your current Instruct Template">
|
||||||
<select id="instruct_presets" data-preset-manager-for="instruct" class="flex1 text_pole"></select>
|
<select id="instruct_presets" data-preset-manager-for="instruct" class="flex1 text_pole"></select>
|
||||||
@ -3431,21 +3432,22 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="SystemPromptColumn" class="flex-container flexNoGap flexFlowColumn flex1">
|
<div id="SystemPromptColumn" class="flex-container flexNoGap flexFlowColumn flex1">
|
||||||
|
<h4 class="standoutHeader title_restorable justifySpaceBetween">
|
||||||
|
<div class="flex-container">
|
||||||
|
<span data-i18n="System Prompt">System Prompt</span>
|
||||||
|
<a href="https://docs.sillytavern.app/usage/core-concepts/advancedformatting/#system-prompt" class="notes-link" target="_blank">
|
||||||
|
<span class="fa-solid fa-circle-question note-link-span"></span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="flex-container">
|
||||||
|
<label id="sysprompt_enabled_label" for="sysprompt_enabled" class="checkbox_label flex1" title="Enable System Prompt" data-i18n="[title]sysprompt_enabled">
|
||||||
|
<input id="sysprompt_enabled" type="checkbox" style="display:none;" />
|
||||||
|
<small><i class="fa-solid fa-power-off menu_button margin0"></i></small>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</h4>
|
||||||
<div id="SystemPromptBlock">
|
<div id="SystemPromptBlock">
|
||||||
<h4 class="standoutHeader title_restorable justifySpaceBetween">
|
|
||||||
<div class="flex-container">
|
|
||||||
<span data-i18n="System Prompt">System Prompt</span>
|
|
||||||
<a href="https://docs.sillytavern.app/usage/core-concepts/advancedformatting/#system-prompt" class="notes-link" target="_blank">
|
|
||||||
<span class="fa-solid fa-circle-question note-link-span"></span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="flex-container">
|
|
||||||
<label for="sysprompt_enabled" class="checkbox_label flex1" title="Enable System Prompt" data-i18n="[title]sysprompt_enabled">
|
|
||||||
<input id="sysprompt_enabled" type="checkbox" style="display:none;" />
|
|
||||||
<small><i class="fa-solid fa-power-off menu_button margin0"></i></small>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</h4>
|
|
||||||
|
|
||||||
<div class="flex-container" title="Select your current System Prompt" data-i18n="[title]Select your current System Prompt">
|
<div class="flex-container" title="Select your current System Prompt" data-i18n="[title]Select your current System Prompt">
|
||||||
<select id="sysprompt_select" data-preset-manager-for="sysprompt" class="flex1 text_pole"></select>
|
<select id="sysprompt_select" data-preset-manager-for="sysprompt" class="flex1 text_pole"></select>
|
||||||
@ -5939,7 +5941,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mes_bias"></div>
|
<div class="mes_bias"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="swipe_right fa-solid fa-chevron-right" style="display: none;">
|
<div class="flex-container swipeRightBlock flexFlowColumn flexNoGap">
|
||||||
|
<div class="swipe_right fa-solid fa-chevron-right" style="display: none;"></div>
|
||||||
<div class="swipes-counter"></div>
|
<div class="swipes-counter"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -978,13 +978,21 @@ body .panelControlBar {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
grid-row-start: 2;
|
grid-row-start: 2;
|
||||||
grid-column-start: 4;
|
|
||||||
flex-flow: column;
|
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
|
||||||
|
}
|
||||||
|
.swipe_left{
|
||||||
|
position: absolute;
|
||||||
|
bottom: 15px;
|
||||||
|
flex-flow: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swipeRightBlock {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 15px;
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.swipes-counter {
|
.swipes-counter {
|
||||||
@ -994,6 +1002,9 @@ body .panelControlBar {
|
|||||||
font-family: var(--mainFontFamily);
|
font-family: var(--mainFontFamily);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
min-width: 40px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.swipe_left {
|
.swipe_left {
|
||||||
@ -1003,6 +1014,7 @@ body .panelControlBar {
|
|||||||
|
|
||||||
.swipe_right {
|
.swipe_right {
|
||||||
right: 5px;
|
right: 5px;
|
||||||
|
align-self:end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-settings {
|
.ui-settings {
|
||||||
@ -2634,6 +2646,11 @@ select option:not(:checked) {
|
|||||||
color: var(--active) !important;
|
color: var(--active) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#instruct_enabled_label .menu_button:not(.toggleEnabled),
|
||||||
|
#sysprompt_enabled_label .menu_button:not(.toggleEnabled) {
|
||||||
|
color: Red;
|
||||||
|
}
|
||||||
|
|
||||||
.displayBlock {
|
.displayBlock {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user