Real-time dashboard for monitoring global news, markets, and geopolitical events
TypeScript
Switch to CSS columns masonry layout for denser panel arrangement
Sean Thielen-Esparza2a733ad13f91
diff --git a/src/lib/components/layout/Dashboard.svelte b/src/lib/components/layout/Dashboard.svelteindex b01a9d0..fb431ab 100644--- a/src/lib/components/layout/Dashboard.svelte+++ b/src/lib/components/layout/Dashboard.svelte@@ -25,32 +25,44 @@}.dashboard-grid {- display: grid;- grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));- grid-auto-rows: min-content;- gap: 0.5rem;+ column-count: 1;+ column-gap: 0.5rem;max-width: 2000px;margin: 0 auto;}+ .dashboard-grid > :global(*) {+ break-inside: avoid;+ margin-bottom: 0.5rem;+ }++ @media (min-width: 600px) {+ .dashboard-grid {+ column-count: 2;+ }+ }++ @media (min-width: 900px) {+ .dashboard-grid {+ column-count: 3;+ }+ }+@media (min-width: 1200px) {.dashboard-grid {- grid-template-columns: repeat(4, 1fr);- grid-auto-rows: min-content;+ column-count: 4;}}@media (min-width: 1600px) {.dashboard-grid {- grid-template-columns: repeat(5, 1fr);- grid-auto-rows: min-content;+ column-count: 5;}}@media (min-width: 2000px) {.dashboard-grid {- grid-template-columns: repeat(6, 1fr);- grid-auto-rows: min-content;+ column-count: 6;}}</style>diff --git a/src/routes/+page.svelte b/src/routes/+page.svelteindex 4f1e8c2..e32c6fb 100644--- a/src/routes/+page.svelte+++ b/src/routes/+page.svelte@@ -407,12 +407,9 @@overflow-y: auto;}- .panel-slot {- min-height: 200px;- }-.map-slot {- grid-column: 1 / -1;+ column-span: all;+ margin-bottom: 0.5rem;}@media (max-width: 768px) {