mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Restyle chat width slider
This commit is contained in:
@ -2698,8 +2698,8 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="UI-language-block" class="flex-container">
|
<div id="UI-language-block" class="flex-container alignitemscenter">
|
||||||
<span data-i18n="UI Language">Language</span>
|
<span data-i18n="UI Language">Language:</span>
|
||||||
<select id="ui_language_select" class="widthNatural flex1 margin0">
|
<select id="ui_language_select" class="widthNatural flex1 margin0">
|
||||||
<option value="" data-i18n="Default">Default</option>
|
<option value="" data-i18n="Default">Default</option>
|
||||||
<option value="en">en</option>
|
<option value="en">en</option>
|
||||||
@ -2792,11 +2792,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="range-block-range-and-counter">
|
<div class="range-block-range-and-counter">
|
||||||
<div class="range-block-range">
|
<div class="range-block-range">
|
||||||
<input id="chat_width_slider" class="wide100p" type="range" min="25" max="75" step="1" value="50">
|
<input id="chat_width_slider" class="wide100p" type="range" min="25" max="100" step="1" value="50">
|
||||||
<div class="slider_hint">
|
</div>
|
||||||
<span>25%</span>
|
<div class="range-block-counter">
|
||||||
<span>50%</span>
|
<div contenteditable="true" data-for="chat_width_slider" id="chat_width_slider_counter">
|
||||||
<span>75%</span>
|
select
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8745,7 +8745,7 @@ jQuery(async function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.debug('Label value OK, setting to the master input control', myText);
|
console.debug('Label value OK, setting to the master input control', myText);
|
||||||
$(masterElement).val(myValue).trigger('input');
|
$(masterElement).val(myValue).trigger('input').trigger('mouseup');
|
||||||
restoreCaretPosition($(this).get(0), caretPosition);
|
restoreCaretPosition($(this).get(0), caretPosition);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -520,6 +520,8 @@ function applyChatWidth(type) {
|
|||||||
document.documentElement.style.setProperty('--sheldWidth', `${power_user.chat_width}vw`);
|
document.documentElement.style.setProperty('--sheldWidth', `${power_user.chat_width}vw`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#chat_width_slider_counter').text(power_user.chat_width);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function applyThemeColor(type) {
|
async function applyThemeColor(type) {
|
||||||
|
Reference in New Issue
Block a user