Fix adv.defs overlap with past chats. Close CFG with Escape

This commit is contained in:
Cohee 2023-12-11 15:39:58 +02:00
parent c6bd3ef255
commit e7c2975ab0
2 changed files with 9 additions and 2 deletions

View File

@ -1123,12 +1123,14 @@ export function initRossMods() {
.not('#left-nav-panel')
.not('#right-nav-panel')
.not('#floatingPrompt')
.not('#cfgConfig')
.is(':visible')) {
let visibleDrawerContent = $('.drawer-content:visible')
.not('#WorldInfo')
.not('#left-nav-panel')
.not('#right-nav-panel')
.not('#floatingPrompt');
.not('#floatingPrompt')
.not('#cfgConfig');
$(visibleDrawerContent).parent().find('.drawer-icon').trigger('click');
return;
}
@ -1143,6 +1145,11 @@ export function initRossMods() {
return;
}
if ($('#cfgConfig').is(':visible')) {
$('#CFGClose').trigger('click');
return;
}
if ($('#left-nav-panel').is(':visible') &&
$(LPanelPin).prop('checked') === false) {
$('#leftNavDrawerIcon').trigger('click');

View File

@ -2633,7 +2633,7 @@ input[type="range"]::-webkit-slider-thumb {
max-height: calc(100vh - 84px);
max-height: calc(100svh - 84px);
position: absolute;
z-index: 3002;
z-index: 3000;
margin-left: auto;
margin-right: auto;
left: 0;