Skip to content

Feed: Snack Pack card corner matches the video thumbnail - #2330

Merged
stolinski merged 1 commit into
v_3from
work/feed-card-radius
Nov 23, 2026
Merged

stolinski merged 1 commit into
v_3from
work/feed-card-radius

Conversation

@stolinski

@stolinski stolinski commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #2329

The Snack Pack card in the home feed had tighter corners (8px) than the framed video thumbnail below it (20px). Now both use the same CSS var.

What changed

  • src/styles/variables.css: two new vars next to the --br-* scale
    • --feed-frame-width: the yellow frame round a feed thumbnail, clamp(6px, 1.6vw, 12px) (was copied in two components)
    • --br-feed-card: calc(var(--br-medium) + var(--feed-frame-width)), the thumbnail's outer corner
  • FeedItemPodcast.svelte, FeedItemVideo.svelte: use the two vars instead of their local --frame-width. Same values, so thumbnails look the same.
  • FeedItemNewsletter.svelte: the Snack Pack card uses --br-feed-card instead of --br-medium.

Checked

Computed border-radius on /:

Width Snack Pack card Video thumbnail
1792px 20px 20px (unchanged)
390px 14.24px 14.24px (unchanged)

Prettier, Stylelint and ESLint pass on the changed files.

🤖 Generated with Claude Code


Note

Low Risk
CSS-only token refactor and cosmetic border-radius alignment in feed components; no logic or data changes.

Overview
Unifies feed card styling so the Snack Pack newsletter card uses the same outer corner radius as podcast/video thumbnail frames.

Adds --feed-frame-width and --br-feed-card in variables.css (replacing duplicate clamp/calc logic in podcast and video item components). FeedItemNewsletter switches from --br-medium to --br-feed-card; FeedItemPodcast and FeedItemVideo reference the shared vars for thumbnail border and radius. Computed corners align across breakpoints (e.g. 20px desktop, ~14px mobile) without changing thumbnail appearance.

Reviewed by Cursor Bugbot for commit 4d6f4cc. Bugbot is set up for automated code reviews on this repo. Configure here.

The feed's frame width and card corner are now CSS vars (--feed-frame-width,
--br-feed-card) in variables.css. The podcast and video thumbnails and the
Snack Pack card all use them, so the corners match. Thumbnails look the same.

Closes #2329

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stolinski
stolinski merged commit c391377 into v_3 Nov 23, 2026
3 of 8 checks passed
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