feat(web): save 按钮改成 icon-only,与 ☆/✎ 风格统一#100
Merged
Conversation
Scott 看截图反馈:保存按钮还是文字「保存」,跟收藏(☆)/编辑(✎) 两个 icon 按钮风格不一致,宽度被压窄时还会折成上下两行「保/存」。 - index.html: 把 btn-save-file 换成 icon-only-btn,内嵌软盘 SVG, title/aria-label='保存';移除 primary-btn 蓝底(与 ☆/✎ 视觉权重统一) - app.js: saveRef 进度反馈从 textContent 改成 title + is-saving class, 避免覆盖 SVG 内容;保留所有错误分支的状态恢复
🤖 bot-review (comment-only · phase 1)Diff: Red-line checks:
Phase 2: auto-approve + auto-merge fire only when red-lines are clean, author is internal, and no needs-human path is touched. Block with |
PR #99 合进 main 之后 ruff lint 一直 fail (I001 import block unsorted)。我这条 PR 的 CI 顺带踩到,顺手修了。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scott 截图反馈:viewer toolbar 里 ☆(收藏)和 ✎(编辑)都是 icon 按钮,只有「保存」是带文字的蓝底按钮,宽度被压窄时还会折成上下两行「保/存」,视觉上很突兀。
改动:
web/index.html:把#btn-save-file换成icon-only-btn,内嵌软盘 SVG,title/aria-label='保存';去掉primary-btn蓝底,跟旁边两个 icon 视觉权重统一。web/app.js:saveRef的进度反馈从textContent='保存中…'改成title + is-saving class,避免覆盖 SVG 子元素;网络错误/正常返回两条路径都恢复 title 和 class。行为不变;只是外观对齐。