Commit d53e54f
fix(ui): use viewport width for lg breakpoint in dashboard row height calculation
The column-count check was using container width, but lg:grid-cols-5
uses viewport width. Switch to window.innerWidth to stay in sync with
the Tailwind breakpoint, and add a window resize listener so row height
recalculates when the viewport crosses the 1024px threshold.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 855e9ec commit d53e54f
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
466 | 471 | | |
467 | 472 | | |
468 | 473 | | |
| |||
0 commit comments