fix: drag bookmark from note to edgeless (#10389)
This commit is contained in:
@@ -1054,6 +1054,7 @@ export class DragEventWatcher {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
block.flavour === 'affine:attachment' ||
|
block.flavour === 'affine:attachment' ||
|
||||||
|
block.flavour === 'affine:bookmark' ||
|
||||||
block.flavour.startsWith('affine:embed-')
|
block.flavour.startsWith('affine:embed-')
|
||||||
) {
|
) {
|
||||||
const style = 'vertical' as EmbedCardStyle;
|
const style = 'vertical' as EmbedCardStyle;
|
||||||
@@ -1135,6 +1136,7 @@ export class DragEventWatcher {
|
|||||||
block.id === content[idx].id &&
|
block.id === content[idx].id &&
|
||||||
(block.flavour === 'affine:image' ||
|
(block.flavour === 'affine:image' ||
|
||||||
block.flavour === 'affine:attachment' ||
|
block.flavour === 'affine:attachment' ||
|
||||||
|
block.flavour === 'affine:bookmark' ||
|
||||||
block.flavour.startsWith('affine:embed-'))
|
block.flavour.startsWith('affine:embed-'))
|
||||||
) {
|
) {
|
||||||
store.updateBlock(block as BlockModel, {
|
store.updateBlock(block as BlockModel, {
|
||||||
|
|||||||
Reference in New Issue
Block a user