fix(preview): clip drawer behind .content with position:relative+overflow:hidden
Some checks failed
CI / build-and-test (push) Failing after 28s

The drawer was bleeding its close-X out of the window's left side
because .content (its containing block) had display:grid but no
position:relative, so absolute-positioned children anchored to .window
or further up the tree. Adding position:relative makes the drawer
anchor to .content, and overflow:hidden clips the off-screen
translateX(100%) so its content doesn't render outside the bounds.
This commit is contained in:
Zac Gaetano 2026-05-13 00:22:42 -04:00
parent 2f9f7092ed
commit 46b1ca5874

View file

@ -174,6 +174,8 @@
display: grid;
grid-template-rows: 44px auto 1fr auto 32px;
min-width: 0;
position: relative;
overflow: hidden;
}
.titlebar {
display: grid;