diff --git a/app/packages/core/src/plugins/SchemaIO/components/ArrowNavView.tsx b/app/packages/core/src/plugins/SchemaIO/components/ArrowNavView.tsx index 181a0bc2c4..d710cdcc60 100644 --- a/app/packages/core/src/plugins/SchemaIO/components/ArrowNavView.tsx +++ b/app/packages/core/src/plugins/SchemaIO/components/ArrowNavView.tsx @@ -9,7 +9,7 @@ import React from "react"; import { ViewPropsType } from "../utils/types"; export default function ArrowNavView(props: ViewPropsType) { - const { schema } = props; + const { schema, otherProps } = props; const { view = {} } = schema; const { on_backward, @@ -20,12 +20,16 @@ export default function ArrowNavView(props: ViewPropsType) { } = view; const panelId = usePanelId(); const handleClick = usePanelEvent(); + const backwardStyles = positionBasedStyleBackward[position] || {}; + const forwardStyles = positionBasedStyleForward[position] || {}; + const { isModalPanel } = otherProps; + const zIndex = isModalPanel ? 1501 : 1000; return ( <> {backward && ( { if (on_backward) { handleClick(panelId, { operator: on_backward }); @@ -38,7 +42,7 @@ export default function ArrowNavView(props: ViewPropsType) { {forward && ( { if (on_forward) { handleClick(panelId, { operator: on_forward });