fix(preview): clip drawer behind .content with position:relative+overflow:hidden
Some checks failed
CI / build-and-test (push) Failing after 28s
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:
parent
2f9f7092ed
commit
46b1ca5874
1 changed files with 2 additions and 0 deletions
|
|
@ -174,6 +174,8 @@
|
|||
display: grid;
|
||||
grid-template-rows: 44px auto 1fr auto 32px;
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.titlebar {
|
||||
display: grid;
|
||||
|
|
|
|||
Loading…
Reference in a new issue