layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[UI] Layer5 logo appears cropped/cut off on <page/component>

Open Joiejoie1 opened this issue 3 months ago • 9 comments

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

  1. Visit the Layer5 website (e.g., homepage or components page)
  2. Observe the logo in the top navigation bar
  3. Compare it with the logo in the footer
  4. 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.

Join the Layer5 Community by submitting your community member form.

Joiejoie1 avatar Aug 10 '26 13:08 Joiejoie1

I'd like to work on this issue as discussed in the website meeting today. @Katotodan

Joiejoie1 avatar Aug 10 '26 13:08 Joiejoie1

Hi @Katotodan ,

This issue has been resolved, and a PR has been opened for your approval. Thanks

Joiejoie1 avatar Aug 12 '26 18:08 Joiejoie1

@Joiejoie1, please mention all the details in the issue. The current issue description is incomplete.

rishiraj38 avatar Aug 16 '26 10:08 rishiraj38

/assign me i want to work on this issue

avnirbca2024-spec avatar Aug 17 '26 09:08 avnirbca2024-spec

@Joiejoie1, please mention all the details in the issue. The current issue description is incomplete.

Thanks @rishiraj38 ,

I'll sure do that.

Joiejoie1 avatar Aug 17 '26 11:08 Joiejoie1

@Joiejoie1, please mention all the details in the issue. The current issue description is incomplete.

@rishiraj38 , I have mentioned all the details in the issue above. I have also attached a video highlighting the issue.

Joiejoie1 avatar Aug 18 '26 14:08 Joiejoie1

I want to work on this issue can you please assign me

haseebt456 avatar Aug 25 '26 03:08 haseebt456

Could you assign this to me. Im a newcomer and trying to participate in LFX mentorship ( term 3)

SankeerthNara avatar Aug 27 '26 07:08 SankeerthNara

Hi @rishiraj38 ,

This issue is ready for review, I have mentioned all the details in the issue above. I have also attached before-and-after videos highlighting the issue.

@Katotodan

Joiejoie1 avatar Sep 03 '26 14:09 Joiejoie1