fix: improve products grid layout responsiveness#394
Conversation
Replace fixed 3-column grid with auto-fit layout that adapts to content. The 5 product cards now flow naturally without awkward spacing. Changes: - Use repeat(auto-fit, minmax(300px, 1fr)) for flexible columns - Add max-width constraint and center alignment - Grid now adapts from 1-3 columns based on viewport width Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
| Filename | Overview |
|---|---|
| docs/assets/css/index.css | Replaces fixed repeat(3, 1fr) grid with auto-fit + minmax(300px, 1fr) and adds max-width: 1200px; margin: 0 auto;. The existing @media (max-width: 768px) override at line 113–115 may suppress the 2-column layout auto-fit would otherwise show in the 620–768px range. |
Comments Outside Diff (1)
-
docs/assets/css/index.css, line 113-115 (link)Media query may be over-aggressive after
auto-fitchangeauto-fitwithminmax(300px, 1fr)naturally collapses to 1 column once the viewport is narrower than ~620px (2×300px + 20px gap). But this existing override forces single-column all the way up to 768px, silently preventing the 2-column layout thatauto-fitwould otherwise produce between ~620–768px. The PR description says "1–3 columns based on viewport width," so the suppressed 2-column range at tablet sizes may be unintentional. If you want the 2-column layout to appear at those widths, the breakpoint here could be lowered to620px.Prompt To Fix With AI
This is a comment left during a code review. Path: docs/assets/css/index.css Line: 113-115 Comment: **Media query may be over-aggressive after `auto-fit` change** `auto-fit` with `minmax(300px, 1fr)` naturally collapses to 1 column once the viewport is narrower than ~620px (2×300px + 20px gap). But this existing override forces single-column all the way up to 768px, silently preventing the 2-column layout that `auto-fit` would otherwise produce between ~620–768px. The PR description says "1–3 columns based on viewport width," so the suppressed 2-column range at tablet sizes may be unintentional. If you want the 2-column layout to appear at those widths, the breakpoint here could be lowered to `620px`. How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
docs/assets/css/index.css:113-115
**Media query may be over-aggressive after `auto-fit` change**
`auto-fit` with `minmax(300px, 1fr)` naturally collapses to 1 column once the viewport is narrower than ~620px (2×300px + 20px gap). But this existing override forces single-column all the way up to 768px, silently preventing the 2-column layout that `auto-fit` would otherwise produce between ~620–768px. The PR description says "1–3 columns based on viewport width," so the suppressed 2-column range at tablet sizes may be unintentional. If you want the 2-column layout to appear at those widths, the breakpoint here could be lowered to `620px`.
Reviews (1): Last reviewed commit: "fix: improve products grid layout respon..." | Re-trigger Greptile
Changes: - Remove identity-strip section (redundant with boundary cards) - 2x2 grid for main products (Protocol, Papillon, Chrysalis, Extension) - "Work With Us" spans full width as prominent CTA Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Summary
Changes
repeat(auto-fit, minmax(300px, 1fr))for flexible columnsTest plan
docs/index.htmlin browser🤖 Generated with Claude Code