mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#1194 Fix chat width misbehaving in Firefox
This commit is contained in:
@ -526,8 +526,10 @@ function applyChatWidth(type) {
|
|||||||
//document.documentElement.style.setProperty('--sheldWidth', power_user.chat_width);
|
//document.documentElement.style.setProperty('--sheldWidth', power_user.chat_width);
|
||||||
} else {
|
} else {
|
||||||
//this is to prevent the slider from updating page in real time
|
//this is to prevent the slider from updating page in real time
|
||||||
$("#chat_width_slider").off('mouseup touchend').on('mouseup touchend', () => {
|
$("#chat_width_slider").off('mouseup touchend').on('mouseup touchend', async () => {
|
||||||
|
await delay(1);
|
||||||
document.documentElement.style.setProperty('--sheldWidth', `${power_user.chat_width}vw`);
|
document.documentElement.style.setProperty('--sheldWidth', `${power_user.chat_width}vw`);
|
||||||
|
await delay(1);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user