Skip to content

Commit 890a9c8

Browse files
committed
fix: keep interface layers server safe
1 parent 69dcab6 commit 890a9c8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/ui/src/theme/layers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { getDefaultZIndex } from "@mantine/core";
1+
// Keep this module server-safe: Mantine's getDefaultZIndex helper is client-only.
2+
const mantineModalZIndex = 200;
23

3-
export const appShellHeaderZIndex = getDefaultZIndex("modal") + 1;
4+
export const appShellHeaderZIndex = mantineModalZIndex + 1;
45
export const modalZIndex = appShellHeaderZIndex + 1;
56
export const managedModalZIndex = modalZIndex + 1;

0 commit comments

Comments
 (0)