layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[UI] Kanvas Modes (Designer & Operator) carousel images are cropped on mobile viewports

Open rohit4300 opened this issue 1 week ago • 0 comments

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 > div enforces height: 380px; overflow-y: scroll; below 768px, which overrides the aspectRatio: "16/9" set on the <StaticImage> components in src/sections/Kanvas/index.js.
  • Because Gatsby <StaticImage> defaults to inline object-fit: cover, forcing a tall 380px container on narrow mobile screens (375px–430px) crops the left and right edges of KanvasDesigner.webp and KanvasVisualizer.webp.

Expected Behavior

  • Both Designer Mode and Operator Mode screenshots should preserve their 16:9 aspect ratio (height: auto, objectFit="contain") on mobile viewports without horizontal cropping or adjacent slide overflow.

Screenshots / Recording

At mobile device

image image

At desktop

image

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?

rohit4300 avatar Nov 25 '26 06:11 rohit4300