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: add hover enter delay for ask ai button (#7872)

donteatfriedricead42418089cf
diff --git a/packages/frontend/core/src/blocksuite/presets/ai/_common/components/ask-ai-button.ts b/packages/frontend/core/src/blocksuite/presets/ai/_common/components/ask-ai-button.ts
index 8bd1fa116c..e77c1b4774 100644
--- a/packages/frontend/core/src/blocksuite/presets/ai/_common/components/ask-ai-button.ts
+++ b/packages/frontend/core/src/blocksuite/presets/ai/_common/components/ask-ai-button.ts
@@ -52,6 +52,7 @@ export class AskAIButton extends WithDisposable(LitElement) {
.ask-ai-button {
border-radius: 4px;
position: relative;
+ user-select: none;
}
.ask-ai-icon-button {
@@ -110,7 +111,10 @@ export class AskAIButton extends WithDisposable(LitElement) {
},
};
},
- { allowMultiple: true }
+ {
+ allowMultiple: true,
+ enterDelay: 100,
+ }
);
@property({ attribute: false })