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:
@@ -52,6 +52,7 @@ export class AskAIButton extends WithDisposable(LitElement) {
|
|||||||
.ask-ai-button {
|
.ask-ai-button {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ask-ai-icon-button {
|
.ask-ai-icon-button {
|
||||||
@@ -110,7 +111,10 @@ export class AskAIButton extends WithDisposable(LitElement) {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
{ allowMultiple: true }
|
{
|
||||||
|
allowMultiple: true,
|
||||||
|
enterDelay: 100,
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
|
|||||||
Reference in New Issue
Block a user