Skip to content

Commit 0e5fa0b

Browse files
committed
fix(web): keep the left drawer slide behind the rail
Transform on the drawer creates a stacking context, so the panel painted over the toolbar while it slid. Raise the rail z-index so the animation stays behind it.
1 parent 3751123 commit 0e5fa0b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

web/src/components/panels/PanelLeft.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ const styles = (
133133

134134
".drawer-content": {
135135
pointerEvents: drawerVisible ? "auto" : "none",
136+
position: "relative",
137+
zIndex: Z_INDEX.base,
136138
marginTop: getSpacingPx(10), // 40px
137139
height: "calc(100% - 40px)",
138140
backgroundColor: theme.vars.palette.background.default,
@@ -182,6 +184,10 @@ const styles = (
182184
display: "flex",
183185
flexDirection: "column",
184186
gap: getSpacingPx(SPACING.md),
187+
// Transform on `.drawer-content` creates a stacking context that paints
188+
// above in-flow siblings. Position the rail so the drawer slides behind it.
189+
position: "relative",
190+
zIndex: Z_INDEX.raised,
185191
backgroundColor: theme.vars.palette.background.default,
186192
borderRight: `1px solid ${theme.vars.palette.divider}`,
187193
paddingTop: getSpacingPx(SPACING.micro),

0 commit comments

Comments
 (0)