From a90f4eb71f566606e1f9e9b4f68ebeeb60e8d8f9 Mon Sep 17 00:00:00 2001 From: Gabriel20xx Date: Wed, 19 Aug 2026 12:06:17 +0200 Subject: [PATCH] fix: give header brand icon a fixed size The brand sized itself with width/height:100%, but it isn't wrapped in a sized container like the fallback letter-mark is, and its flex-item parent has no definite size for the percentage to resolve against - so it rendered at whatever intrinsic size the favicon happened to report instead of a consistent icon size. --- packages/web-ui/src/lib/styles.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/web-ui/src/lib/styles.css b/packages/web-ui/src/lib/styles.css index 27be52b..2629f84 100644 --- a/packages/web-ui/src/lib/styles.css +++ b/packages/web-ui/src/lib/styles.css @@ -75,11 +75,15 @@ } .sc-brand-icon { - width: 100%; - height: 100%; + /* Fixed instead of percentage-based: the icon isn't wrapped in a sized container (unlike + .sc-brand-mark, which this rule mirrors), and .sc-brand's own width is content-driven, so + a percentage here has no definite box to resolve against and lets the image render at + whatever intrinsic size its source happens to have. */ + width: 2rem; + height: 2rem; padding: 0.25rem; object-fit: contain; - border-radius: inherit; + border-radius: var(--sc-radius-md); } .sc-nav {