diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index eb70341ba..f5bad628b 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -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'); diff --git a/public/style.css b/public/style.css index b7ef54902..8d4a9092d 100644 --- a/public/style.css +++ b/public/style.css @@ -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;