claude-code - 💡(How to fix) Fix [Generative UI Widget] 默认字号过小,建议提高默认值或支持用户自定义字号

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

问题描述

Generative UI Widget 的默认字号过小(约 11–12px),在渲染中文内容时尤其明显, 包括表格、标签(badge)、多行列表等结构化内容,可读性较差。

复现步骤

让 Claude 生成包含中文的结构化摘要或表格(使用 Generative UI Widget 渲染), 可观察到 .text-muted、badge 标签、次要文本等部分字号明显小于周围的对话文字。

期望行为

  • 将 Widget 沙箱内的最小字号从 11px 提高到至少 13px
  • 或提供用户可配置的全局字号设置(如 --widget-font-size-base CSS 变量), 使所有文本等比例缩放

建议方案

  1. 提高 widget sandbox CSS 中的默认 font-size 基准值
  2. 或在 Claude Code 设置中暴露 Widget 字号偏好选项, 方便不同语言、不同屏幕尺寸的用户按需调整

环境

  • 平台:Windows 11(MyAgents 桌面客户端)
  • 模型:claude-sonnet-4-6

Summary (English)

Widget default font size (~11–12px) is too small for dense Chinese text. Request either raising the default minimum or providing a user-configurable font size setting.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING