Fix ImportStatementDialog overflow on narrow viewports #2
Reference in New Issue
Block a user
Delete Branch "feature/bulk-import-style-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The review and confirm steps were rendering as wide editable tables
inside a
sm:max-w-3xldialog (~768px). The inputs alone consumed~750px before padding, so on smaller desktop windows the content was
clipped left/right, and on mobile it was effectively unusable.
Two-pronged fix:
md:max-w-5xl xl:max-w-6xlso the tablehas room on typical desktops. Mobile stays full-width minus margin.
md:breakpoint. Desktop keeps the editable table (now with fixed-width
columns, an inline status badge instead of a separate Status column,
and
overflow-autoas a graceful fallback at intermediate widths).Below
md:, rows render as stacked cards — checkbox + date + statuson top, description full-width, amount + type wrapped, transfer
destination dropping below when applicable. Same data, no horizontal
scrolling on phones.
The Confirm step's expand-to-preview table gets the same treatment:
table on desktop, summary cards on mobile.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com