Skip to content

MarkdownAura v1.5.2

Choose a tag to compare

@westsource westsource released this 13 Oct 12:57
· 17 commits to main since this release

MarkdownAura 1.5.2

两处对齐修好,都在"关于"面板与它的同类界面里。 不是新功能,是两种"看着差不多、量出来不齐"的排版问题。

  • 品牌行的四个文字事实不再各站各的。 MarkdownAura、版本号、MIT、主页链接原本靠
    .about-brand { align-items: center } 按盒子居中,而它们用了三种字号(16 / 11.5 / 12 px):
    盒子等高不代表基线等高,量出来 16px 的标题比右侧小字低 2.75px。改成 align-items: baseline 后
    四条基线完全相同(差 0)。图标没有基线,单独 align-self: center 保持居中,没有被按到基线上。
  • 两种按钮从此共用一个高度。 新增令牌 --h-btn: 25px,.ghost-btn(描边)与 .primary-btn(填充)
    共用;填充那个的纵向内边距从 7px 收到 3px,否则它的内容把盒子撑回 32px。此前填充按钮高 32.125px、
    它旁边总有的描边按钮 24.675px,所以任何一对都不同高:关于面板的「检查更新 / 下载并安装」差
    7.46px(这一行写了 align-items: center,错位就露在那儿)。空状态与未保存对话框看着是平的,但那
    是偶然——它们的容器是 display: flex 且没写 align-items,默认 stretch 把描边按钮拉到了填充按钮
    的高度。现在两个基类自身等高,层级只由填充色和字号承担,不再由盒子高度承担。

验证:mockup 实渲染逐个量(不是读代码)。品牌行四条基线 301.25 / 301.25 / 301.25 / 301.25,差 0;
按钮高度在三个位置(关于 / 空状态 / 未保存)全部 25px,两两相等;三处截图逐一看过。npm run build
(tsc --noEmit + vite)通过,cargo test 通过,design/check-raw-html.mjs 与
design/check-prose-css.mjs 两个设计闸门通过。

没有功能改动、没有渲染器改动、没有新设置、没有存储格式变化。只动了 design/tokens.css、
design/components.css 与 design/SPEC.md §8(把这条规则写进视觉语言)。


Two alignment fixes, both in the About sheet and the rows it shares its button styles with. No new feature —
these are two cases of "looks close enough, measures uneven".

  • The four text facts on the brand line no longer sit at four different heights. MarkdownAura, the version,
    MIT and the homepage link were centred by .about-brand { align-items: center } — which centres boxes —
    while they are set at three sizes (16 / 11.5 / 12 px). Equal boxes are not equal baselines: the 16px name sat
    2.75px below the metadata beside it. align-items: baseline puts all four on one baseline (spread 0). The
    mark has no baseline, so it keeps align-self: center and stays centred instead of being dropped onto the line.
  • Both button weights now share one height. A new token --h-btn: 25px is used by .ghost-btn (outline) and
    .primary-btn (filled); the filled one's vertical padding drops from 7px to 3px, without which its content
    inflated the box back to 32px. The filled button was 32.125px and the outline button it always sits beside
    was 24.675px, so no pair ever matched: in the About sheet "check for updates / download and install" differed
    by 7.46px (that row sets align-items: center, which is where it showed). The empty state and the unsaved
    dialog looked even, but only by accident — their containers are display: flex with no align-items, so the
    default stretch pulled the outline button up to the filled one's height. The two base classes are now equal by
    themselves; hierarchy is carried by fill and type size, never by box height.

Verified by measuring the real mockup (not by reading the code). The brand line's four baselines are
301.25 / 301.25 / 301.25 / 301.25 — spread 0; button heights are 25px in all three places (About, empty state,
unsaved dialog), pairwise equal; all three were checked in screenshots. npm run build (tsc --noEmit + vite)
passes, cargo test passes, and the design/check-raw-html.mjs and design/check-prose-css.mjs design gates pass.

No behaviour change, no renderer change, no new setting, no storage change. Only design/tokens.css,
design/components.css and design/SPEC.md §8 (where the rule is recorded) were touched.