From 663cb7c67a2a5c40250536fd57e648feaf6ba4e9 Mon Sep 17 00:00:00 2001 From: 134 Date: Mon, 13 Jul 2026 15:17:53 +0800 Subject: [PATCH] fix: resolve Pascal editor icons under base path --- .../floorplan-cursor-indicator-overlay.tsx | 5 ++- .../editor/src/components/editor/index.tsx | 2 +- .../components/tools/shared/cursor-sphere.tsx | 3 +- .../ui/panels/parametric-inspector.tsx | 7 ++- .../src/components/ui/sidebar/icon-rail.tsx | 5 ++- .../ui/sidebar/panels/site-panel/index.tsx | 17 ++++---- .../src/components/ui/snap-target-badge.tsx | 7 +-- .../editor/src/components/viewer-overlay.tsx | 43 +++++++++++++++---- 8 files changed, 62 insertions(+), 27 deletions(-) diff --git a/services/pascal-editor/packages/editor/src/components/editor-2d/floorplan-cursor-indicator-overlay.tsx b/services/pascal-editor/packages/editor/src/components/editor-2d/floorplan-cursor-indicator-overlay.tsx index 80a672db6..bf24a0dbf 100644 --- a/services/pascal-editor/packages/editor/src/components/editor-2d/floorplan-cursor-indicator-overlay.tsx +++ b/services/pascal-editor/packages/editor/src/components/editor-2d/floorplan-cursor-indicator-overlay.tsx @@ -2,6 +2,7 @@ import { Icon } from '@iconify/react' import { memo, useMemo } from 'react' +import { withEditorBasePath } from '../../lib/public-asset-path' import useEditor, { type FloorplanSelectionTool } from '../../store/use-editor' import { furnishTools } from '../ui/action-menu/furnish-tools' import { tools as structureTools } from '../ui/action-menu/structure-tools' @@ -108,7 +109,7 @@ export const FloorplanCursorIndicatorOverlay = memo(function FloorplanCursorIndi alt="" aria-hidden="true" className="h-5 w-5 object-contain drop-shadow-[0_2px_4px_rgba(0,0,0,0.5)]" - src={indicator.iconSrc} + src={withEditorBasePath(indicator.iconSrc)} /> ) : (