[UI] Layer5 logo appears cropped/cut off on <page/component>
@Joiejoie1 is already working on this.
Since Sep 3, 2026.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 1.6k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 18
Description
Description
The Layer5 logo displayed in the navigation bar (header) appears cropped/clipped instead of being fully visible.
This issue affects the visual integrity of the UI and does not align with proper logo display guidelines (logos should not be clipped or distorted).
Expected Behavior
The full Layer5 logo should be clearly visible in the navbar
No part of the logo (top, bottom, or sides) should be clipped
The logo should scale proportionally across different screen sizes
Actual Behavior
The logo in the header/navbar is slightly cut off, especially along the top edge
The cropping becomes more noticeable on certain screen sizes
The footer logo displays correctly, confirming that the issue is isolated to the navbar
Steps to Reproduce
- Visit the Layer5 website (e.g., homepage or components page)
- Observe the logo in the top navigation bar
- Compare it with the logo in the footer
- Notice that:
- Header logo → ❌ cropped
- Footer logo → ✅ correctly displayed
Before:
Screenshots / Video
https://github.com/user-attachments/assets/0d1e9fe7-cc23-48e8-b1db-d9f0e7f8bebf
After:
https://github.com/user-attachments/assets/023a8d42-78de-4d92-9693-cc654dca0419
Environment:
- Host OS: Windows 10 (or Windows 11 / macOS / Ubuntu — use yours)
- Browser: Chrome (version 151) / Firefox / Edge
- Device: Desktop
🔍 Root Cause (Investigation)
Initial debugging suggests the issue is related to:
- Default browser behavior:
`svg:not(:root) {
overflow: hidden;
}`
- The SVG logo inside `.logo`:
- Uses fixed width without proper height scaling
- Lacks `overflow: visible`, causing clipping
🛠️ Proposed Fix
Update the SVG styling in:
src/sections/General/Navigation/navigation.style.js
Suggested fix:
.logo svg {
height: auto;
overflow: visible;
display: block;
}
Also applied the same fix for responsive (mobile) styles.
Additional Context
- The issue is isolated to the navigation/header component, not the logo asset itself
- Footer logo renders correctly, confirming the asset is valid
- Fix should ensure consistency across all screen sizes
✅ Acceptance Criteria
- Logo is fully visible in the navbar
- No clipping occurs on any screen size
- Behavior is consistent across browsers
- Matches rendering of footer logo
Contributor Resources and Handbook
The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.
- 📚 See contributing instructions.
- 🎨 Wireframes and designs for Layer5 site in Figma (open invite)
- 🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack.
Join the Layer5 Community by submitting your community member form.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.