Allow generic moving divs for extensions
This commit is contained in:
parent
870fdd93d2
commit
c82157945e
|
@ -201,7 +201,8 @@
|
|||
#left-nav-panel,
|
||||
#floatingPrompt,
|
||||
#cfgConfig,
|
||||
#logprobsViewer {
|
||||
#logprobsViewer,
|
||||
#movingDivs > div {
|
||||
height: calc(100vh - 45px);
|
||||
height: calc(100svh - 45px);
|
||||
min-width: 100% !important;
|
||||
|
@ -219,7 +220,8 @@
|
|||
|
||||
#floatingPrompt,
|
||||
#cfgConfig,
|
||||
#logprobsViewer {
|
||||
#logprobsViewer,
|
||||
#movingDivs > div {
|
||||
height: min-content;
|
||||
}
|
||||
|
||||
|
|
|
@ -332,6 +332,10 @@
|
|||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.flex0 {
|
||||
flex: 0;
|
||||
}
|
||||
|
||||
.flex1 {
|
||||
flex: 1;
|
||||
}
|
||||
|
|
|
@ -1072,6 +1072,7 @@ export function initRossMods() {
|
|||
.not('#floatingPrompt')
|
||||
.not('#cfgConfig')
|
||||
.not('#logprobsViewer')
|
||||
.not('#movingDivs > div')
|
||||
.is(':visible')) {
|
||||
let visibleDrawerContent = $('.drawer-content:visible')
|
||||
.not('#WorldInfo')
|
||||
|
@ -1079,7 +1080,8 @@ export function initRossMods() {
|
|||
.not('#right-nav-panel')
|
||||
.not('#floatingPrompt')
|
||||
.not('#cfgConfig')
|
||||
.not('#logprobsViewer');
|
||||
.not('#logprobsViewer')
|
||||
.not('#movingDivs > div');
|
||||
$(visibleDrawerContent).parent().find('.drawer-icon').trigger('click');
|
||||
return;
|
||||
}
|
||||
|
@ -1104,6 +1106,13 @@ export function initRossMods() {
|
|||
return;
|
||||
}
|
||||
|
||||
$('#movingDivs > div').each(function () {
|
||||
if ($(this).is(':visible')) {
|
||||
$('#movingDivs > div .floating_panel_close').trigger('click');
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
if ($('#left-nav-panel').is(':visible') &&
|
||||
$(LPanelPin).prop('checked') === false) {
|
||||
$('#leftNavDrawerIcon').trigger('click');
|
||||
|
|
Loading…
Reference in New Issue