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: drag bookmark from note to edgeless (#10389)

doouding9bb74bce6bdc
diff --git a/blocksuite/affine/widget-drag-handle/src/watchers/drag-event-watcher.ts b/blocksuite/affine/widget-drag-handle/src/watchers/drag-event-watcher.ts
index acb3dc4d65..00fa5e2714 100644
--- a/blocksuite/affine/widget-drag-handle/src/watchers/drag-event-watcher.ts
+++ b/blocksuite/affine/widget-drag-handle/src/watchers/drag-event-watcher.ts
@@ -1054,6 +1054,7 @@ export class DragEventWatcher {
if (
block.flavour === 'affine:attachment' ||
+ block.flavour === 'affine:bookmark' ||
block.flavour.startsWith('affine:embed-')
) {
const style = 'vertical' as EmbedCardStyle;
@@ -1135,6 +1136,7 @@ export class DragEventWatcher {
block.id === content[idx].id &&
(block.flavour === 'affine:image' ||
block.flavour === 'affine:attachment' ||
+ block.flavour === 'affine:bookmark' ||
block.flavour.startsWith('affine:embed-'))
) {
store.updateBlock(block as BlockModel, {