diff --git a/src/components/Island.css b/src/components/Island.css index cea8c533..bca91f08 100644 --- a/src/components/Island.css +++ b/src/components/Island.css @@ -5,4 +5,5 @@ box-shadow: var(--shadow-island); border-radius: var(--border-radius-m); padding: calc(var(--padding) * var(--space-factor)); + position: relative; } diff --git a/src/components/Island.tsx b/src/components/Island.tsx index c4ef6ebc..08ae1c89 100644 --- a/src/components/Island.tsx +++ b/src/components/Island.tsx @@ -6,13 +6,14 @@ type IslandProps = { children: React.ReactNode; padding?: number; className?: string; + style?: object; }; export const Island = React.forwardRef( - ({ children, padding, className }, ref) => ( + ({ children, padding, className, style }, ref) => (
{children} diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 114e7139..64c18b30 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -125,7 +125,9 @@ export const LayerUI = React.memo(
- + {/* the zIndex ensures this menu has higher stacking order, + see https://github.com/excalidraw/excalidraw/pull/1445 */} + {actionManager.renderAction("loadScene")}