layer5
layer5 copied to clipboard
[UI] Kanvas Modes (Designer & Operator) carousel images are cropped on mobile viewports
Description
On https://layer5.io/cloud-native-management/kanvas, the mobile "Kanvas Modes" carousel (Designer Mode and Operator Mode) crops both product screenshots horizontally on mobile viewports (<= 768px), and the adjacent slide peeks at the edge.
Root Cause:
- In
src/components/Features-carousel/FeaturesCarousel.style.js,.terminal-wrapper > divenforcesheight: 380px; overflow-y: scroll;below768px, which overrides theaspectRatio: "16/9"set on the<StaticImage>components insrc/sections/Kanvas/index.js. - Because Gatsby
<StaticImage>defaults to inlineobject-fit: cover, forcing a tall380pxcontainer on narrow mobile screens (375px–430px) crops the left and right edges ofKanvasDesigner.webpandKanvasVisualizer.webp.
Expected Behavior
- Both
Designer ModeandOperator Modescreenshots should preserve their16:9aspect ratio (height: auto,objectFit="contain") on mobile viewports without horizontal cropping or adjacent slide overflow.
Screenshots / Recording
At mobile device
At desktop
Environment:
- Host OS: Windows 11
- Browser: Google Chrome (Mobile Responsive View, 375x667)
I would like to work on this issue and submit a narrowly scoped PR inside src/sections/Kanvas/ so other pages using Features-carousel are unaffected. Could you please assign this to me?