From b7fb3b820dfcb303bf285feef18b6723e3b8ec92 Mon Sep 17 00:00:00 2001 From: Sam Dornan Date: Sun, 4 Oct 2026 00:28:57 +0000 Subject: [PATCH] fix(v2): centre the md RSectionLabel icon on the capitals Flex centres the icon on the text's line box, which keeps descender room below the baseline that uppercase text never fills. At 12px that left the icon about 1.25px below the caps; lifting it 1px brings every label icon within a quarter pixel on average at 1x and 2x. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01BYiFXo8o1n1wy9Zbd4AgYF --- .../src/v2/lib/primitives/RSectionLabel/RSectionLabel.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/v2/lib/primitives/RSectionLabel/RSectionLabel.vue b/frontend/src/v2/lib/primitives/RSectionLabel/RSectionLabel.vue index 3cb2a8ff6..db9ffb913 100644 --- a/frontend/src/v2/lib/primitives/RSectionLabel/RSectionLabel.vue +++ b/frontend/src/v2/lib/primitives/RSectionLabel/RSectionLabel.vue @@ -63,8 +63,12 @@ withDefaults(defineProps(), { color: var(--r-color-fg-secondary); } -/* Whole-pixel glyph sizes keep the icon centred on the text. */ +/* Whole-pixel glyph sizes keep the icon centred on the text. Flex centres + the icon on the line box, which reserves descender room the capitals + never use, so at md the icon lands about 1px below the caps. */ .r-section-label--md .r-section-label__icon { + position: relative; + top: -1px; font-size: 14px; } .r-section-label--sm .r-section-label__icon {