Skip to content

Commit

Permalink
increase zIndex of modal sidebar to fix resize bug
Browse files Browse the repository at this point in the history
  • Loading branch information
imanjra committed Sep 27, 2024
1 parent 81037fa commit 20adb47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/packages/core/src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import SchemaSettings from "../Schema/SchemaSettings";
import { Filter } from "./Entries";
import style from "./Sidebar.module.css";
import ViewSelection from "./ViewSelection";
import { useTheme as useMUITheme } from "@mui/material";

const MARGIN = 3;

Expand Down Expand Up @@ -693,6 +694,7 @@ const InteractiveSidebar = ({
() => new ResizeObserver(placeItems)
);
const theme = useTheme();
const muiTheme = useMUITheme();

return shown ? (
<Resizable
Expand All @@ -705,7 +707,10 @@ const InteractiveSidebar = ({
setWidth(width + delta);
}}
onResizeReset={resetWidth}
style={{ borderTopRightRadius: 8 }}
style={{
borderTopRightRadius: 8,
zIndex: modal ? muiTheme.zIndex.tooltip + 1 : undefined,
}}
>
<SchemaSettings />
{!modal && (
Expand Down

0 comments on commit 20adb47

Please sign in to comment.