Fit 2 input fields per row on phone screens#86
Conversation
Co-authored-by: lookbusy1344 <3680611+lookbusy1344@users.noreply.github.com>
Moved 2-column layout from narrow phone breakpoint (480px) to tablet breakpoint (768px). The 480px breakpoint was too narrow and missed phones in landscape mode (667-844px) and small tablets, leaving them with the single-column layout. Changes: - Tablet breakpoint now uses flex-direction: row with 2 fields per row - Input fields sized at calc(50% - 0.375rem) to fit exactly 2 per row - Rigid flex sizing (0 0) prevents growing/shrinking - Removed redundant phone breakpoint rules - Calculate button wraps to full-width row below inputs Now all screens ≤768px show 2 input fields per row as intended. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Code Review: Fit 2 input fields per row on phone screensSummaryThis PR improves the mobile UX by optimizing horizontal space usage on phone screens, displaying 2 input fields per row instead of 1. The changes are focused and appropriate for the stated goal. ✅ Positive Aspects1. Code Quality & Best Practices
2. Mobile-First Responsive Design
3. Consistency
|
Phone screens were displaying 1 input field per row, wasting horizontal space. Phone widths can accommodate 2 fields side-by-side.
Changes
Javascript/src/styles/responsive.css@media (max-width: 480px)query to display input fields in 2-column layout.input-group-customfrom column to row flex directioncalc(50% - 0.375rem)width to account for gapBefore/After
Before: 4 fields stacked vertically
After: 2×2 grid with calculate button full-width below
Applies to all calculator tabs (Const Accel, Flip, Spacetime, etc.) using
.input-group-custom.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.