Skip to content

Fix inconsistent SVG tile icon sizes - #1583

Merged
KodeStar merged 1 commit into
2.xfrom
fix/app-icon-consistent-size
Aug 3, 2026
Merged

Fix inconsistent SVG tile icon sizes#1583
KodeStar merged 1 commit into
2.xfrom
fix/app-icon-consistent-size

Conversation

@KodeStar

@KodeStar KodeStar commented Aug 3, 2026

Copy link
Copy Markdown
Member

Fixes #1582.

Problem

Mixing icon sources on the dashboard looked broken: SVGs that ship explicit width/height attributes rendered tiny, while icons without size attributes (e.g. Simple Icons) rendered large.

The cause is .app-icon using max-width/max-height: 60px. max-* only caps an image's intrinsic size and never scales it up, so an SVG declaring width="24" rendered at 24px, while a dimensionless SVG defaulted large and got capped to 60px.

Fix

Pin .app-icon to a fixed 60px x 60px box with object-fit: contain. The .app-icon-container was already a fixed 60x60, so every icon now renders at a consistent size regardless of whether the SVG declares its own dimensions, and object-fit: contain preserves aspect ratio so non-square icons are not distorted.

Updated both the SCSS source and the committed compiled CSS. No upscaling regression for the raster fallback (heimdall-icon-small.png is 250x250).

SVG icons with explicit width/height attributes rendered tiny because
max-width/max-height only caps intrinsic size and never scales up, while
dimensionless SVGs defaulted large and were capped to 60px. Pin .app-icon
to a fixed 60x60 box with object-fit: contain so every icon renders at a
consistent size while preserving aspect ratio.

Fixes #1582
@KodeStar
KodeStar merged commit 238452c into 2.x Aug 3, 2026
2 checks passed
@LinuxServer-CI LinuxServer-CI moved this from PRs to Done in Issue & PR Tracker Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

SVG tile icons render at wildly different sizes

2 participants