diff --git a/src/pods/thumb-pages/components/thumb-page.module.css b/src/pods/thumb-pages/components/thumb-page.module.css index 2853702f..7ba5d480 100644 --- a/src/pods/thumb-pages/components/thumb-page.module.css +++ b/src/pods/thumb-pages/components/thumb-page.module.css @@ -24,3 +24,7 @@ .icon-container > svg:hover { background-color: var(--primary-100); } + +.noclick { + pointer-events: none; +} diff --git a/src/pods/thumb-pages/components/thumb-page.tsx b/src/pods/thumb-pages/components/thumb-page.tsx index 49496d52..8ec6e209 100644 --- a/src/pods/thumb-pages/components/thumb-page.tsx +++ b/src/pods/thumb-pages/components/thumb-page.tsx @@ -87,33 +87,36 @@ export const ThumbPage: React.FunctionComponent = props => { onContextMenu={handleShowContextMenu} key={key} > - - - {shapes.map(shape => { - if (!fakeShapeRefs.current[shape.id]) { - fakeShapeRefs.current[shape.id] = createRef(); - } - return renderShapeComponent(shape, { - handleSelected: () => {}, - shapeRefs: fakeShapeRefs, - handleDragEnd: - (_: string) => (_: KonvaEventObject) => {}, - handleTransform: () => {}, - }); - })} - - +
+ + + {shapes.map(shape => { + if (!fakeShapeRefs.current[shape.id]) { + fakeShapeRefs.current[shape.id] = createRef(); + } + return renderShapeComponent(shape, { + handleSelected: () => {}, + shapeRefs: fakeShapeRefs, + handleDragEnd: + (_: string) => (_: KonvaEventObject) => {}, + handleTransform: () => {}, + }); + })} + + +
+ {showContextMenu && (