Skip to content

fix(branding): serve tenant logos unoptimized so they stay sharp - #1824

Merged
realcodesiman merged 1 commit into
mainfrom
fix/blurry-tenant-logo
Nov 30, 2026
Merged

realcodesiman merged 1 commit into
mainfrom
fix/blurry-tenant-logo

Conversation

@realcodesiman

Copy link
Copy Markdown
Contributor

Summary

  • Tenant logos are uploads of any size and aspect ratio, sized by CSS (h-8 w-auto). Through the Next image optimizer, width picks the srcset entry, so the sidebar brand icon (width={10}) was downscaled to a few pixels and upscaled back blurry.
  • Serve the original file (unoptimized) in the sidebar BrandIcon, the auth header and the public template header, matching the branding settings preview, which already rendered correctly.
  • Give the sidebar BrandIcon realistic intrinsic dimensions (128x32 logo, 32x32 icon).

Test plan

  • Sidebar logo is sharp when expanded and when collapsed to the icon
  • Sign-in / sign-up header logo is sharp for a tenant with a custom logo
  • Public template page header logo is sharp in light and dark themes
  • pnpm --filter builder check-types (ran in the pre-commit hook)

Tenant logos are uploads of any size and aspect ratio, sized by CSS. Through the Next image optimizer a small width picks a tiny srcset entry, which the browser upscales into a blurry logo. Serve the original file in the sidebar brand icon, auth header and public template header, as the branding settings preview already does.
@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 30, 2026
@realcodesiman
realcodesiman merged commit 72cd8b7 into main Nov 30, 2026
15 checks passed
@realcodesiman
realcodesiman deleted the fix/blurry-tenant-logo branch November 30, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant