-
Notifications
You must be signed in to change notification settings - Fork 354
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
fix: optimize save code button marker position #982
fix: optimize save code button marker position #982
Conversation
WalkthroughThe pull request introduces modifications to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)packages/plugins/script/src/Main.vue (1)
The reduced size and updated color align with the project's error color scheme, and the new top/right offsets will better place the indicator. This resolves the previously misaligned marker issue. packages/plugins/schema/src/Main.vue (2)
Marking the wrapper as
The updated Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/common/component/toolbar-built-in/ToolbarBaseButton.vue (1)
6-8
: Enhance accessibility for the “save-title” span.
Including anaria-label
ortitle
attribute on the<span class="save-title">
might improve usability for screen readers, especially if this button’s function is critical.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/common/component/toolbar-built-in/ToolbarBaseButton.vue
(2 hunks)
🔇 Additional comments (3)
packages/common/component/toolbar-built-in/ToolbarBaseButton.vue (3)
2-3
: Use optional chaining carefully to avoid potential runtime issues.
Your usage of options?.showDots
short-circuits gracefully if options
is undefined. This is good defensive coding. However, ensure that in older environments that do not support optional chaining, a suitable polyfill or transpilation step is used.
4-4
: Validate button’s dynamic attributes.
The <tiny-button>
component now resides inside a div.svg-wrap
. Verify that the placement and any event bindings remain correct after introducing the wrapper.
48-56
: Confirm the new dot styling.
The changes to .dot
positioning (top: -3px; right: 2px;
) correctly move it closer to the corner of the button. Verify that the dot remains visible under various container sizes and theming conditions.
* fix: optimize save code button marker position * fix: resolve point style issues for page Schema and page JS
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
保存代码按钮标记位置显示错误
Issue Number: N/A
What is the new behavior?
修复保存代码按钮标记位置
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit