Layout bugs from screenshots
Send a screenshot of the broken page with the relevant CSS and have MiniMax M3 point to the rule that causes it. Check the fix in the browser at the same screen width.
Example: Why does the button wrap onto two lines?
Material
- Screenshot (390 px wide)
- The “Start free trial” button text breaks into two lines and the button is taller than the input next to it.
- styles.css
- .signup-row { display: flex; } .signup-row input { flex: 1 0 280px; } .signup-row button { padding: 0 24px; }
PromptUsing the screenshot description and the CSS, explain why the button text wraps on mobile and give the smallest fix.
Sample answer · written by hand to show the reasoning
The input has a 280 px flex basis and cannot shrink (flex-shrink 0), so on a 390 px screen only about 110 px is left for the button, and its text wraps. Let the input shrink with flex: 1 1 0 and min-width: 0, and add white-space: nowrap to the button. Check again at 390 px and 320 px widths.