Skip to content

Commit 4721d60

Browse files
JOYclaude
andcommitted
fix: logo sizing for img tag on welcome + header
SVG component has implicit sizing via CSS class, but img tag renders at 0x0px. Add explicit height style for brand logo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 48000b1 commit 4721d60

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/components/common/Header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const Header = ({ onMenuToggle, onBatchToggle }: HeaderProps): ReactElement => {
8686

8787
<div className={classnames(css.element, css.hideMobile, css.logo)}>
8888
<Link href={logoHref} passHref>
89-
{isOfficialHost ? <SafeLabsLogo alt={BRAND_NAME} /> : BRAND_LOGO && <img src={BRAND_LOGO} alt={BRAND_NAME} />}
89+
{isOfficialHost ? <SafeLabsLogo alt={BRAND_NAME} /> : BRAND_LOGO && <img src={BRAND_LOGO} alt={BRAND_NAME} style={{ height: 24, width: 'auto' }} />}
9090
</Link>
9191
</div>
9292

apps/web/src/components/welcome/NewSafe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const NewSafe = () => {
1515
{IS_OFFICIAL_HOST ? (
1616
<SafeLabsLogo className={css.logo} />
1717
) : BRAND_LOGO ? (
18-
<img src={BRAND_LOGO} alt={BRAND_NAME} className={css.logo} />
18+
<img src={BRAND_LOGO} alt={BRAND_NAME} style={{ height: 40, width: 'auto' }} />
1919
) : (
2020
<SafeLabsLogo className={css.logo} />
2121
)}

0 commit comments

Comments
 (0)