mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix adv.defs overlap with past chats. Close CFG with Escape
This commit is contained in:
@@ -1123,12 +1123,14 @@ export function initRossMods() {
|
|||||||
.not('#left-nav-panel')
|
.not('#left-nav-panel')
|
||||||
.not('#right-nav-panel')
|
.not('#right-nav-panel')
|
||||||
.not('#floatingPrompt')
|
.not('#floatingPrompt')
|
||||||
|
.not('#cfgConfig')
|
||||||
.is(':visible')) {
|
.is(':visible')) {
|
||||||
let visibleDrawerContent = $('.drawer-content:visible')
|
let visibleDrawerContent = $('.drawer-content:visible')
|
||||||
.not('#WorldInfo')
|
.not('#WorldInfo')
|
||||||
.not('#left-nav-panel')
|
.not('#left-nav-panel')
|
||||||
.not('#right-nav-panel')
|
.not('#right-nav-panel')
|
||||||
.not('#floatingPrompt');
|
.not('#floatingPrompt')
|
||||||
|
.not('#cfgConfig');
|
||||||
$(visibleDrawerContent).parent().find('.drawer-icon').trigger('click');
|
$(visibleDrawerContent).parent().find('.drawer-icon').trigger('click');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1143,6 +1145,11 @@ export function initRossMods() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($('#cfgConfig').is(':visible')) {
|
||||||
|
$('#CFGClose').trigger('click');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($('#left-nav-panel').is(':visible') &&
|
if ($('#left-nav-panel').is(':visible') &&
|
||||||
$(LPanelPin).prop('checked') === false) {
|
$(LPanelPin).prop('checked') === false) {
|
||||||
$('#leftNavDrawerIcon').trigger('click');
|
$('#leftNavDrawerIcon').trigger('click');
|
||||||
|
@@ -2633,7 +2633,7 @@ input[type="range"]::-webkit-slider-thumb {
|
|||||||
max-height: calc(100vh - 84px);
|
max-height: calc(100vh - 84px);
|
||||||
max-height: calc(100svh - 84px);
|
max-height: calc(100svh - 84px);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 3002;
|
z-index: 3000;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
Reference in New Issue
Block a user