Skip to content

fix(branding): render the OLITT SVG logo in the header#10

Merged
willymwai merged 1 commit into
devfrom
fix/storefront-svg-logo-render
Jul 2, 2026
Merged

fix(branding): render the OLITT SVG logo in the header#10
willymwai merged 1 commit into
devfrom
fix/storefront-svg-logo-render

Conversation

@Elias-3817

Copy link
Copy Markdown

The branding default introduced an SVG logo that never painted: next/image returned 400 because dangerouslyAllowSVG was unset, and once SVGs are allowed it strips their intrinsic width/height while the header forced the img to height:auto, collapsing it to 0x0. Allow SVGs with a locked-down CSP and pin the logo to a fixed height so the browser derives width from the viewBox.

The branding default introduced an SVG logo that never painted: next/image
returned 400 because dangerouslyAllowSVG was unset, and once SVGs are allowed
it strips their intrinsic width/height while the header forced the img to
height:auto, collapsing it to 0x0. Allow SVGs with a locked-down CSP and pin
the logo to a fixed height so the browser derives width from the viewBox.
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@willymwai willymwai merged commit ffbec1e into dev Jul 2, 2026
@willymwai willymwai deleted the fix/storefront-svg-logo-render branch July 2, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants