-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In-editor overlay optimization #1190
Conversation
Skipping CI for Draft Pull Request. |
2377c22
to
b0b1696
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 6 out of 21 changed files in this pull request and generated 1 comment.
Files not reviewed (15)
- spx-gui/src/components/editor/code-editor/ui/resource-reference/selector/ResourceSelector.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/resource-reference/ResourceReferenceUI.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/context-menu/ContextMenuUI.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/completion/CompletionCard.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/completion/CompletionUI.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/CodeEditorCard.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/context-menu/ContextMenu.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/hover/HoverCard.vue: Evaluated as low risk
- spx-gui/src/components/ui/menu/UIMenuItem.vue: Evaluated as low risk
- spx-gui/src/components/ui/UIDropdown.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/context-menu/ContextMenuTrigger.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/hover/HoverUI.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/CodeEditorUI.vue: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/context-menu/index.ts: Evaluated as low risk
- spx-gui/src/components/editor/code-editor/ui/completion/index.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)
spx-gui/src/components/editor/code-editor/ui/hover/index.ts:69
- The new behavior introduced in the
hideHoverWithDelay
function is not covered by tests.
private hideHoverWithDelay() {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
基本是原来的 UIDropdown.vue
的逻辑,除了这几个变更:
- 改为 render function 的写法,以便准确地控制传给
NPopover
的 slots - Prop
pos
支持指定 size(width
&height
),此时 dropdown 的定位会考虑 size(就像对待 trigger 节点那样) - 原本通过
<style>
设置的样式现在通过指定NPopover
的style
实现
This PR has been deployed to the preview environment. You can explore it using the preview URL. Warning Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the Go+ Builder team. |
Close #1167.
UIDropdown
for in-editor layers, except for ContextMenu trigger.