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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(editor): add shift middleware for tag select panel (#9664)
zzj3720810e656174cb
diff --git a/blocksuite/affine/data-view/src/core/component/tags/multi-tag-select.ts b/blocksuite/affine/data-view/src/core/component/tags/multi-tag-select.tsindex 61e58c914e..859e1d4257 100644--- a/blocksuite/affine/data-view/src/core/component/tags/multi-tag-select.ts+++ b/blocksuite/affine/data-view/src/core/component/tags/multi-tag-select.ts@@ -16,7 +16,7 @@ import {MoreHorizontalIcon,} from '@blocksuite/icons/lit';import { nanoid } from '@blocksuite/store';-import { flip, offset } from '@floating-ui/dom';+import { flip, offset, shift } from '@floating-ui/dom';import { computed, type ReadonlySignal, signal } from '@preact/signals-core';import { cssVarV2 } from '@toeverything/theme/v2';import { nothing } from 'lit';@@ -570,7 +570,7 @@ export const popTagSelect = (target: PopupTarget, ops: TagSelectOptions) => {};const remove = createPopup(target, component, {onClose: ops.onComplete,- middleware: [flip(), offset({ mainAxis: -28, crossAxis: 112 })],+ middleware: [flip(), offset({ mainAxis: -28, crossAxis: 112 }), shift()],container: ops.container,});return remove;