Skip to content

fix(ui): constrain branding logo to fit within header on mobile#1175

Merged
perber merged 1 commit into
mainfrom
fix/branding-banner-overflow
Jun 19, 2026
Merged

fix(ui): constrain branding logo to fit within header on mobile#1175
perber merged 1 commit into
mainfrom
fix/branding-banner-overflow

Conversation

@perber

@perber perber commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Logo image had h-16 (64px) but the header is only h-[55px] with p-4 padding, leaving only ~23px of inner space. On mobile this caused the banner to overflow and push other UI elements out of alignment.

Fix: replace h-16 with h-auto max-h-9 (36px) so the image scales down to fit. Add overflow-hidden to the header as a safety net.

Logo image had h-16 (64px) but the header is only h-[55px] with p-4
padding, leaving only ~23px of inner space. On mobile this caused the
banner to overflow and push other UI elements out of alignment.

Fix: replace h-16 with h-auto max-h-9 (36px) so the image scales down
to fit. Add overflow-hidden to the header as a safety net.
Copilot AI review requested due to automatic review settings June 19, 2026 12:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Not ready to approve

The updated logo max-height (36px) is still larger than the header’s available inner height (~22–23px), so the logo may still overflow and be clipped rather than reliably scaling to fit.

Pull request overview

This PR adjusts the UI header branding so the site logo doesn’t overflow the fixed-height header on mobile, aiming to keep the header layout stable across screen sizes.

Changes:

  • Adds overflow-hidden to .app-layout__header to prevent visual overflow from header contents.
  • Updates .app-layout__logo-image sizing from a fixed height (h-16) to a constrained, scalable height (h-auto with a max height).
File summaries
File Description
ui/leafwiki-ui/src/index.css Constrains header/logo styling to prevent mobile header overflow.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.


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

Comment thread ui/leafwiki-ui/src/index.css
@perber
perber merged commit 1772076 into main Jun 19, 2026
10 checks passed
@perber
perber deleted the fix/branding-banner-overflow branch June 19, 2026 12:49
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