diff --git a/frontend/src/core/components/viewer/EmbedPdfViewer.tsx b/frontend/src/core/components/viewer/EmbedPdfViewer.tsx index bf9af4eca5..e9695712d4 100644 --- a/frontend/src/core/components/viewer/EmbedPdfViewer.tsx +++ b/frontend/src/core/components/viewer/EmbedPdfViewer.tsx @@ -14,7 +14,7 @@ import { createStirlingFilesAndStubs } from '@app/services/fileStubHelpers'; import NavigationWarningModal from '@app/components/shared/NavigationWarningModal'; import { isStirlingFile } from '@app/types/fileContext'; import { useViewerRightRailButtons } from '@app/components/viewer/useViewerRightRailButtons'; -import { SignaturePlacementOverlay } from '@app/components/viewer/SignaturePlacementOverlay'; +import { StampPlacementOverlay } from '@app/components/viewer/StampPlacementOverlay'; import { useWheelZoom } from '@app/hooks/useWheelZoom'; export interface EmbedPdfViewerProps { @@ -69,7 +69,8 @@ const EmbedPdfViewerContent = ({ // Check if we're in signature mode OR viewer annotation mode const { selectedTool } = useNavigationState(); - const isSignatureMode = selectedTool === 'sign'; + // Tools that use the stamp/signature placement system with hover preview + const isSignatureMode = selectedTool === 'sign' || selectedTool === 'addText'; // Enable annotations when: in sign mode, OR annotation mode is active, OR we want to show existing annotations const shouldEnableAnnotations = isSignatureMode || isAnnotationMode || isAnnotationsVisible; @@ -275,7 +276,7 @@ const EmbedPdfViewerContent = ({ // Future: Handle signature completion }} /> - rem * parseFloat(getComputedStyle(document.documentElement).fontSize); -interface SignaturePlacementOverlayProps { +interface StampPlacementOverlayProps { containerRef: React.RefObject; isActive: boolean; signatureConfig: SignParameters | null; } -export const SignaturePlacementOverlay: React.FC = ({ +export const StampPlacementOverlay: React.FC = ({ containerRef, isActive, signatureConfig,