fix(blog): stack featured posts vertically on mobile to prevent horizontal overflow#4012
fix(blog): stack featured posts vertically on mobile to prevent horizontal overflow#4012waleedlatif1 merged 1 commit intostagingfrom
Conversation
PR SummaryLow Risk Overview Updates the featured card border styling to use top borders in the stacked layout and left borders in the horizontal layout (including first-item border rules) to keep dividers consistent across breakpoints. Reviewed by Cursor Bugbot for commit 5a9f42a. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR fixes a mobile overflow bug on the blog index page where featured posts were rendered in a bare
Confidence Score: 5/5Safe to merge — minimal, correct two-line Tailwind responsive layout fix with no logic changes The change is a textbook mobile-first responsive fix. Border logic at both orientations is correct: top-border separators for the vertical mobile stack, left-border separators for the horizontal sm+ row. No logic, data, or API changes are present; all P2 findings would be style-only and none were found. No files require special attention Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Blog Page Load] --> B{featured.length > 0?}
B -->|Yes| C[Render featured posts container]
C --> D{Viewport width}
D -->|less than sm| E[flex-col: vertical stack\nborder-t separators\nfirst:border-t-0]
D -->|sm and above| F[flex-row: horizontal row\nsm:border-l separators\nsm:first:border-l-0]
B -->|No| G[Skip featured section]
E --> H[Render remaining posts list]
F --> H
G --> H
Reviews (1): Last reviewed commit: "fix(blog): stack featured posts vertical..." | Re-trigger Greptile |
Summary
flexrow with no mobile breakpoint, causing all 3 cards to be forced side-by-side on small screensflex-col) and switching to horizontal layout atsmbreakpoint, with border logic updated to matchType of Change
Testing
Tested manually
Checklist