Skip to content

fix(inkSwitch): remap size scale so md matches previous sm - #68

Merged
xiaoland merged 1 commit into
mainfrom
fix/ink-switch-size-scale
Oct 23, 2026
Merged

xiaoland merged 1 commit into
mainfrom
fix/ink-switch-size-scale

Conversation

@xiaoland

Copy link
Copy Markdown
Member

问题

InkSwitch 的 md 档(100×36)相对 12px 的 label 字体和周围表单控件明显过大,默认档在设置页这类密集表单里观感是"大"而不是"中"(InKCre/impl-ts 遥测开关的实际反馈)。

改动

尺寸梯度整体下移:

档位 旧 新
base/xs 60×24 48×20
sm 80×24 64×24
md 100×36 80×24(= 旧 sm)
lg 120×48 100×36(= 旧 md)

旧 lg(120×48)不再有档位承接——impl-ts 与 stories 均无 lg 使用。

影响

对依赖旧 md/lg 渲染尺寸的消费方是视觉性变更(minor + changeset 已注明)。impl-ts 侧将由配套 PR bump 到本版本并移除遥测开关上的临时 size="sm"(新默认 md 即目标观感)。

The md tier (100x36) was oversized relative to the 12px label font and
surrounding form controls, which made the default switch read as
'large' in dense settings forms. Shift the scale down: md := 80x24
(old sm), lg := 100x36 (old md), sm := 64x24, base/xs := 48x20.

Visually breaking for consumers that depended on the old md/lg
rendered sizes.
@xiaoland
xiaoland merged commit 207bec8 into main Oct 23, 2026
1 check passed
@xiaoland
xiaoland deleted the fix/ink-switch-size-scale branch October 23, 2026 06:43

This branch was successfully deployed

1 active deployment
preview — fa67b5de Deployed Oct 23, 2026 by xiaoland via ui-web preview cleanup #32
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