Skip to content

fix(header): remove fixed height from logo to preserve aspect ratio#478

Merged
gabitoesmiapodo merged 1 commit intodevelopfrom
fix/476-logo-stretched
Apr 21, 2026
Merged

fix(header): remove fixed height from logo to preserve aspect ratio#478
gabitoesmiapodo merged 1 commit intodevelopfrom
fix/476-logo-stretched

Conversation

@gabitoesmiapodo
Copy link
Copy Markdown
Collaborator

Summary

Closes #476

Both width and height were fixed on the logo element, which forces
a specific aspect ratio regardless of the image's natural dimensions.
Removing the fixed height lets the browser derive it from the SVG's
intrinsic size, so the logo always renders proportionally.

Changes

  • Remove height={77} from chakra.img in Logo.tsx; height is now
    derived from the image's intrinsic dimensions while width={193}
    continues to control the render size

Acceptance criteria

  • Logo renders at its natural aspect ratio when displayed in the header

Test plan

Automated tests

No automated tests added or modified — this is a single-prop removal
with no logic change.

Run: pnpm test

Manual verification

  1. Load the application
  2. Observe the logo in the header — it should render without stretching

Breaking changes

None.

Checklist

  • Self-reviewed my own diff
  • Tests added or updated
  • Docs updated (if applicable)
  • No unrelated changes bundled in

Screenshots

None.

Copilot AI review requested due to automatic review settings April 21, 2026 20:39
@gabitoesmiapodo gabitoesmiapodo self-assigned this Apr 21, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
components.dappbooster Ready Ready Preview, Comment Apr 21, 2026 8:40pm
demo.dappbooster Ready Ready Preview, Comment Apr 21, 2026 8:40pm
docs.dappbooster Ready Ready Preview, Comment Apr 21, 2026 8:40pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses header logo stretching by removing the fixed height prop from the Logo component so the rendered height is derived from the image’s intrinsic dimensions while width remains controlled.

Changes:

  • Removed the fixed height={77} from the header Logo image.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gabitoesmiapodo gabitoesmiapodo merged commit cf2752e into develop Apr 21, 2026
13 checks passed
@gabitoesmiapodo gabitoesmiapodo deleted the fix/476-logo-stretched branch April 21, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Header logo appears stretched due to fixed dimensions

2 participants