mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
fix: add hover enter delay for ask ai button (#7872)
[AF-1075](https://linear.app/affine-design/issue/AF-1075/双击选中内容的时候,如果-toolbar-出现在内容上方,ai-action-会自动展开)
This commit is contained in:
+5
-1
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user