make AF panel toggles red and opaque when disabled

020741d78b403f302c5f6ee7cc7c928463e040f1

RossAscends <124905043+RossAscends@users.noreply.github.com>

2 files changed, +27 -7Showing whitespace changes
public/index.html+8 -5
@@ -3248,7 +3248,6 @@
32483248 </div>
32493249 </div>
32503250 <div id="InstructSettingsColumn" class="flex-container flexNoGap flexFlowColumn flex1">
3251- <div id="instructSettingsBlock">
32523251 <h4 class="standoutHeader title_restorable justifySpaceBetween">
32533252 <div class="flex-container">
32543253 <span data-i18n="Instruct Template">Instruct Template</span>
@@ -3261,12 +3260,14 @@
32613260 <input id="instruct_bind_to_context" type="checkbox" style="display:none;" />
32623261 <small><i class="fa-solid fa-link menu_button margin0"></i></small>
32633262 </label>
32643263 <label id="instruct_enabled_label"for="instruct_enabled" class="checkbox_label flex1" title="Enable Instruct Mode" data-i18n="[title]instruct_enabled">
32653264 <input id="instruct_enabled" type="checkbox" style="display:none;" />
32663265 <small><i class="fa-solid fa-power-off menu_button margin0"></i></small>
32673266 </label>
32683267 </div>
32693268 </h4>
3269+ <div id="instructSettingsBlock">
3270+
32703271
32713272 <div class="flex-container" title="Select your current Instruct Template" data-i18n="[title]Select your current Instruct Template">
32723273 <select id="instruct_presets" data-preset-manager-for="instruct" class="flex1 text_pole"></select>
@@ -3431,7 +3432,6 @@
34313432 </div>
34323433 </div>
34333434 <div id="SystemPromptColumn" class="flex-container flexNoGap flexFlowColumn flex1">
3434- <div id="SystemPromptBlock">
34353435 <h4 class="standoutHeader title_restorable justifySpaceBetween">
34363436 <div class="flex-container">
34373437 <span data-i18n="System Prompt">System Prompt</span>
@@ -3440,12 +3440,14 @@
34403440 </a>
34413441 </div>
34423442 <div class="flex-container">
34433443 <label id="sysprompt_enabled_label" for="sysprompt_enabled" class="checkbox_label flex1" title="Enable System Prompt" data-i18n="[title]sysprompt_enabled">
34443444 <input id="sysprompt_enabled" type="checkbox" style="display:none;" />
34453445 <small><i class="fa-solid fa-power-off menu_button margin0"></i></small>
34463446 </label>
34473447 </div>
34483448 </h4>
3449+ <div id="SystemPromptBlock">
3450+
34493451
34503452 <div class="flex-container" title="Select your current System Prompt" data-i18n="[title]Select your current System Prompt">
34513453 <select id="sysprompt_select" data-preset-manager-for="sysprompt" class="flex1 text_pole"></select>
@@ -5939,7 +5941,8 @@
59395941 </div>
59405942 <div class="mes_bias"></div>
59415943 </div>
59425944 <div class="swipe_right faflex-solidcontainer fa-chevron-right"swipeRightBlock style="display:flexFlowColumn none;flexNoGap">
5945+ <div class="swipe_right fa-solid fa-chevron-right" style="display: none;"></div>
59435946 <div class="swipes-counter"></div>
59445947 </div>
59455948 </div>
public/style.css+19 -2
@@ -978,13 +978,21 @@ body .panelControlBar {
978978 justify-content: center;
979979 z-index: 9999;
980980 grid-row-start: 2;
981- grid-column-start: 4;
982- flex-flow: column;
983981 font-size: 30px;
984982 cursor: pointer;
985983 align-self: center;
984+
985+}
986+.swipe_left{
986987position: absolute;
987988bottom: 15px;
989+flex-flow: column;
990+}
991+
992+.swipeRightBlock {
993+ position: absolute;
994+ right: 0;
995+ bottom: 0;
988996}
989997
990998.swipes-counter {
@@ -994,6 +1002,9 @@ body .panelControlBar {
9941002 font-family: var(--mainFontFamily);
9951003 font-weight: 400;
9961004 align-self: center;
1005+ min-width: 40px;
1006+ display: flex;
1007+ justify-content: center;
9971008}
9981009
9991010.swipe_left {
@@ -1003,6 +1014,7 @@ body .panelControlBar {
10031014
10041015.swipe_right {
10051016 right: 5px;
1017+ align-self:end;
10061018}
10071019
10081020.ui-settings {
@@ -2634,6 +2646,11 @@ select option:not(:checked) {
26342646 color: var(--active) !important;
26352647}
26362648
2649+#instruct_enabled_label .menu_button:not(.toggleEnabled),
2650+#sysprompt_enabled_label .menu_button:not(.toggleEnabled) {
2651+ color: Red;
2652+}
2653+
26372654.displayBlock {
26382655 display: block !important;
26392656}