Skip to content

improve:修复 SQL 编辑器横向滚动条过粗 - #8941

Merged
t8y2 merged 1 commit into
t8y2:mainfrom
zipg:codex/sql-editor-horizontal-scrollbar
Sep 12, 2026
Merged

improve:修复 SQL 编辑器横向滚动条过粗#8941
t8y2 merged 1 commit into
t8y2:mainfrom
zipg:codex/sql-editor-horizontal-scrollbar

Conversation

@zipg

@zipg zipg commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

变更说明

  • 为 SQL 编辑器的 WebKit 滚动条补充 height: 5px
  • 使横向滚动条与现有 5px 纵向滚动条保持一致。
  • 样式仅作用于 SQL 编辑器,不影响数据表等其他滚动区域。

验证

  • 本地开发页面验证 Chromium 下横向滚动条高度由约 16px 降为 5px。
  • git diff --check 通过。

Fixes #8940

@github-actions github-actions Bot added area/desktop Desktop application or Tauri shell ui-change Changes user-visible interface, text, or visual assets labels Sep 12, 2026
@zipg zipg changed the title 修复 SQL 编辑器横向滚动条过粗 improve:修复 SQL 编辑器横向滚动条过粗 Sep 12, 2026

@t8y2 t8y2 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢提交!改动已审核:在 [data-query-editor-root] :deep(.cm-scroller::-webkit-scrollbar) 中补充 height: 5px 是标准做法(WebKit/Chromium 中 width 控制纵向、height 控制横向滚动条粗细),与既有纵向 5px 保持一致。

已确认:作用域仅限 SQL 编辑器,不影响其他滚动区域;Firefox 路径已有 scrollbar-width: thin 兜底;未引入过渡/动画等影响编辑器性能历史的属性;与 #8943#8944 修改同文件但无相邻代码块,任意合并顺序均可自动合并。CI 通过,合并。

@t8y2
t8y2 merged commit 80d314b into t8y2:main Sep 12, 2026
16 checks passed
@t8y2

t8y2 commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Thanks for the contribution! Merged in 80d314b, will be released in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/desktop Desktop application or Tauri shell ui-change Changes user-visible interface, text, or visual assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] SQL 编辑器横向滚动条高度过大

2 participants