fix: show resize overlay during dialog shell gutter resize

Apply the is-resizing class at resize start and remove it on end,
and raise the related resize overlay z-index so sibling content stays
visible underneath the resize indicator.
This commit is contained in:
Dariusz L
2026-07-28 12:35:56 +02:00
parent 37d31b6782
commit e6c6de1c6f
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -734,7 +734,7 @@
.mr-missing-browser.is-resizing::after {
content: "";
position: absolute;
z-index: 1;
z-index: 9999;
inset: 0;
cursor: col-resize;
pointer-events: auto;
+7 -1
View File
@@ -341,7 +341,11 @@ export const dialogShellMethods = {
const pageX = Number(event?.pageX ?? event?.clientX);
const pageY = Number(event?.pageY ?? event?.clientY);
state.pendingArgs = args;
state.hasMoved = true;
if (!state.hasMoved) {
state.hasMoved = true;
state.gutter?.classList?.add('is-resizing');
state.gutter?.parentElement?.classList?.add('is-resizing');
}
const offset = state.vertical
? pageY - state.appliedPageY
@@ -408,6 +412,8 @@ export const dialogShellMethods = {
}
state.gutter.style.transform = state.originalTransform;
state.gutter.style.willChange = state.originalWillChange;
state.gutter?.classList?.remove('is-resizing');
state.gutter?.parentElement?.classList?.remove('is-resizing');
document.removeEventListener('mouseup', state.mouseUpHandler, true);
window.removeEventListener('blur', state.blurHandler);
return true;