Skip to content

fix(ui): 行内 code 方块加高,链接虚线下划线与方块底边分离 - #315

Merged
vshengbro merged 1 commit into
masterfrom
fix/md-code-chip-link-underline
Oct 17, 2026
Merged

vshengbro merged 1 commit into
masterfrom
fix/md-code-chip-link-underline

Conversation

@vshengbro

Copy link
Copy Markdown
Collaborator

.md-body code vertical padding .15em → .45em(上下对称,文字垂直居中)。链接内 code 芯片的底边框与 dashed 下划线原来几乎重合(间距≈2px),现间距 3px 干净空白,像素级实测确认两条线分离。pre code 不受影响。版本 0.30.8 → 0.30.9。

.md-body code 的 vertical padding 从 .15em 加到 .45em(上下对称,文字保持
垂直居中)。链接里的 code 芯片原来底边框与 a 的 dashed 下划线
(text-underline-offset: 3px,同色 var(--border))几乎贴在一起,虚线
完全看不出来。

像素级实测(表格内链接芯片,font 12.25px):
  修改前   下划线与底边框间距 ≈ 2px,肉眼糊成一条
  修改后   间距 3px 干净空白,虚线与实线明确两条线(y461-463 vs y467)

对称 padding 保证垂直居中:文字上下各 5.5px。行内散文芯片同行高
(line-height 1.7 已容纳),pre code 的 padding:0 覆盖不受影响。

版本 0.30.8 → 0.30.9。
@ghfind-review ghfind-review Bot added the review: high ghfind author score; see https://ghfind.com label Oct 17, 2026
@vshengbro
vshengbro merged commit 2f92364 into master Oct 17, 2026
8 checks passed
@vshengbro
vshengbro deleted the fix/md-code-chip-link-underline branch October 17, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: high ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant