Repository navigation
Feed: Snack Pack card corner matches the video thumbnail - #2330
Merged
Merged
Conversation
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>
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.
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 cornerFeedItemPodcast.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-cardinstead of--br-medium.Checked
Computed
border-radiuson/: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-widthand--br-feed-cardinvariables.css(replacing duplicateclamp/calclogic in podcast and video item components). FeedItemNewsletter switches from--br-mediumto--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.