layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

Fix logo/graphic fitting within its container on mobile viewports

Open SajanBisht opened this issue 1 month ago • 7 comments

Description

The logo/graphic in the HPE case study section does not appear to scale and fit correctly within its container on smaller mobile viewports.

When testing the page using responsive mode, the layout appears inconsistent across different mobile screen widths.

Page: https://layer5.io

Steps to Reproduce

  1. Visit the HPE case study page.
  2. Open browser developer tools and enable responsive design mode.
  3. Test the layout at different mobile viewport widths (e.g., 546px and 360px).
  4. Observe how the logo/graphic is rendered inside its container.

Expected Behavior

  • The logo/graphic should scale proportionally to fit within its parent container.
  • It should remain properly centered and maintain its aspect ratio.
  • No clipping, overflow, or unwanted spacing should occur at smaller viewport widths.

Actual Behavior

The logo/graphic does not scale consistently across mobile viewport widths. Its sizing and alignment within the container appear inconsistent, resulting in a layout that does not adapt cleanly to smaller screens.

Environment

  • Browser: Firefox
  • Testing mode: Responsive Design Mode
  • Viewports: 546px and 360px
  • Device emulation: Android

Screenshots

Screenshots demonstrating the behavior at different viewport widths are attached.

Anyone can work on this issue

Image Image

SajanBisht avatar Oct 31 '26 07:10 SajanBisht

@PARTH-TUSSLE it could be Good first issue...

SajanBisht avatar Oct 31 '26 07:10 SajanBisht

2. @PARTH-TUSSLE it could be Good first issue...

Thanks for mentioning this @SajanBisht 🙌

PARTH-TUSSLE avatar Oct 31 '26 07:10 PARTH-TUSSLE

Hi! I'd like to work on this one. I'll reproduce the logo sizing issue at 360px/546px viewports, fix it in the HPE case study section, and open a PR with before/after screenshots.

AP24110011695 avatar Oct 31 '26 09:10 AP24110011695

Opened PR #8277 with the fix \u2014 verified at 360px and 546px locally, before/after screenshots are in the PR.

AP24110011695 avatar Oct 31 '26 10:10 AP24110011695

Hello, I'd like to work on this issue. I'll inspect the existing container and image styles, fix the breakpoint-specific sizing using responsive CSS (max-width: 100%, height: auto), and verify alignment and scaling at 546px and 360px.

JayitaL avatar Nov 22 '26 07:11 JayitaL

Hi @JayitaL — thanks for picking this up, and the approach you describe (breakpoint-specific sizing with max-width: 100%; height: auto, verified at 546px and 360px) is exactly the right shape for it.

One heads-up to avoid duplicate work: there is an open PR for this issue already — #8277. The maintainers own the pick between the two; if they prefer your approach, I'll close ours graciously. Until then I'd suggest waiting on their assignment call rather than starting in parallel.

AP24110011695 avatar Nov 22 '26 13:11 AP24110011695

closing as completed

PARTH-TUSSLE avatar Nov 26 '26 14:11 PARTH-TUSSLE