This commit is contained in:
2025-12-04 00:29:32 +01:00
parent 9f88823315
commit 65555c18e8
4 changed files with 3 additions and 10 deletions
+3 -2
View File
@@ -19,6 +19,7 @@ import { PointerTrackingProvider, usePointerTracking } from './PointerTrackingCo
import type { Identifier } from '../types/identifiers';
import type { DocumentsListEntry, Document } from '../types/documents';
import { usePreviewContext } from '../preview/PreviewContext';
import { useAppState } from '../app/appState';
type TagLike = { id?: Identifier | null; label?: string; color?: string | null } | null;
type OverlaySource = { url: string; alt?: string | null; mimeType?: string | null; };
@@ -51,7 +52,6 @@ export interface DesktopWorkspaceProps {
onSelectionChange?: (selectedIds: Identifier[]) => void;
onDocumentTagAttach?: (docId: Identifier, tagId: Identifier) => void;
onDocumentTagDetach?: (docId: Identifier, tagId: Identifier) => void;
tenantId?: Identifier | null;
viewId?: string | null;
defaultCardSize?: number;
}
@@ -87,11 +87,12 @@ const DesktopWorkspaceContent: React.FC<DesktopWorkspaceProps> = ({
onSelectionChange,
onDocumentTagAttach,
onDocumentTagDetach,
tenantId,
viewId,
defaultCardSize = 200,
}) => {
const { openPreview } = usePreviewContext();
const { tenant } = useAppState();
const tenantId = tenant?.id as Identifier;
const { addPointer, removePointer } = usePointerTracking();
const containerRef = useRef<HTMLDivElement>(null);
const [isLayoutReady, setIsLayoutReady] = useState(false);