Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(edtiro): hide toc drag indicator on edgeless note (#10135)

L-Sundbf1d0038a94
diff --git a/blocksuite/presets/src/fragments/outline/card/outline-card.ts b/blocksuite/presets/src/fragments/outline/card/outline-card.ts
index f10c825c40..7e0064e1b4 100644
--- a/blocksuite/presets/src/fragments/outline/card/outline-card.ts
+++ b/blocksuite/presets/src/fragments/outline/card/outline-card.ts
@@ -119,6 +119,9 @@ export class OutlineNoteCard extends SignalWatcher(
setDropData: () => ({
noteId: this.note.id,
}),
+ canDrop: () => {
+ return this.note.displayMode !== NoteDisplayMode.EdgelessOnly;
+ },
})
);
}