fix(landing): clamp card motif right-bleed, stop wide-viewport clipping - #526
Merged
Conversation
.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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.mcard .motif'sright: -5%bleed scales with card width, but the box itself caps atmax-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 byoverflow: hiddenright: clamp(-20px, -5%, 0px)- keeps the small edge-bleed look on narrow cards, caps the overhang at 20px everywhere elseVerified by injecting the fix live on the deployed page (both icons render fully) before porting it back to the template.
Test plan