Fix logo/graphic fitting within its container on mobile viewports
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
- Visit the HPE case study page.
- Open browser developer tools and enable responsive design mode.
- Test the layout at different mobile viewport widths (e.g., 546px and 360px).
- 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
@PARTH-TUSSLE it could be Good first issue...
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.
Opened PR #8277 with the fix \u2014 verified at 360px and 546px locally, before/after screenshots are in the PR.
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.
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.
closing as completed