This commit is contained in:
2025-10-30 14:41:15 +01:00
parent 86be6256a4
commit 67fd787a14
9 changed files with 23 additions and 60 deletions
+1 -4
View File
@@ -23,9 +23,6 @@ const DEFAULT_CANVAS_WIDTH = 1024;
const DEFAULT_CANVAS_HEIGHT = 680;
const TAG_MIME_TYPES = ['application/x-papercrate-tag', 'text/papercrate-tag'];
const resolveSizeKey = (doc) =>
doc?.id || doc?.document_id || doc?.uuid || doc?.original_name || doc?.title || 'doc';
const CARD_MIN = 240;
const CARD_MAX = 340;
const TAG_REMOVE_DISTANCE = 160;
@@ -1170,7 +1167,7 @@ const syncLayoutSnapshot = useCallback(() => {
id: doc.id,
width: docWidth,
height: docHeight,
seedKey: resolveSizeKey(doc),
seedKey: doc.id,
});
});