Skip to content

fix(landing): clamp card motif right-bleed, stop wide-viewport clipping - #526

Merged
PBernaerts merged 1 commit into
mainfrom
fix/motif-clip-position
Aug 24, 2026
Merged

fix(landing): clamp card motif right-bleed, stop wide-viewport clipping#526
PBernaerts merged 1 commit into
mainfrom
fix/motif-clip-position

Conversation

@PBernaerts

Copy link
Copy Markdown
Owner

Summary

  • Both Plex and Jellyfin card icons were clipping at wide viewports (confirmed live at 1920px)
  • Root cause: .mcard .motif's right: -5% bleed scales with card width, but the box itself caps at max-width: 150px - past a certain card width the overhang (in px) exceeds what the box can absorb, so more of the icon's right edge gets clipped by overflow: hidden
  • Fix: right: clamp(-20px, -5%, 0px) - keeps the small edge-bleed look on narrow cards, caps the overhang at 20px everywhere else

Verified by injecting the fix live on the deployed page (both icons render fully) before porting it back to the template.

Test plan

  • Visual check on the deployed landing page at a wide viewport (Kijken row)

.mcard .motif's -5% right offset scales with card width, but the box
itself caps at max-width:150px. On a wide viewport the two diverge -
at 1920px the Plex card is 866px wide, so the 5% overhang is 43px
against a 150px box, clipping ~6px off the chevron tip (Jellyfin's
ring clipped too, less severely). Verified live on the deployed page
and confirmed the fix there before porting it back: clamping the
offset to a 20px ceiling keeps the bleed effect on narrow cards while
capping the overhang everywhere else, so the icon never loses more
than it can spare.
@PBernaerts
PBernaerts merged commit 2f6f5a9 into main Aug 24, 2026
10 checks passed
@PBernaerts
PBernaerts deleted the fix/motif-clip-position branch August 24, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant