Skip to content

fix: 使用 CSS 变量实现聊天界面字体缩放#1

Open
h91312 wants to merge 2 commits intomainfrom
fix/chat-font-scale
Open

fix: 使用 CSS 变量实现聊天界面字体缩放#1
h91312 wants to merge 2 commits intomainfrom
fix/chat-font-scale

Conversation

@h91312
Copy link
Copy Markdown
Owner

@h91312 h91312 commented Apr 6, 2026

  • 将 chat.css 中所有硬编码的 font-size (11px, 13px, 14px 等) 替换为 CSS 变量 (--font-size-xs, --font-size-sm, --font-size-md 等)
  • 使设置中的字体缩放功能对聊天界面生效

变更描述

变更类型

  • 新功能 (feat)
  • Bug 修复 (fix)
  • 代码重构 (refactor)
  • 样式调整 (style)
  • 性能优化 (perf)
  • 文档更新 (docs)
  • 构建/CI 配置 (ci/build)
  • 其他 (chore)

测试清单

  • 本地运行 npm run build 前端构建通过
  • 本地运行 cargo check Rust 编译通过
  • 在 macOS 上测试通过
  • 在 Windows 上测试通过
  • 在 Linux 上测试通过
  • 新功能已添加对应测试
  • 所有现有测试通过

相关 Issue

截图 (如涉及 UI 变更)

h91312 added 2 commits April 6, 2026 17:10
- 将 chat.css 中所有硬编码的 font-size (11px, 13px, 14px 等)
  替换为 CSS 变量 (--font-size-xs, --font-size-sm, --font-size-md 等)
- 使设置中的字体缩放功能对聊天界面生效
将所有硬编码的 font-size 替换为 CSS 变量(--font-size-xs/sm/md/lg/xl),
使设置中的字体缩放功能对聊天界面完全生效。

修改涉及 58 处字体大小定义。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant