Skip to content

Real-time dashboard for monitoring global news, markets, and geopolitical events

TypeScript

Fix header collision and reduce map panel spacing

Sean Thielen-Esparza35073db16762
diff --git a/src/lib/components/layout/Dashboard.svelte b/src/lib/components/layout/Dashboard.svelte
index 10be92c..b01a9d0 100644
--- a/src/lib/components/layout/Dashboard.svelte
+++ b/src/lib/components/layout/Dashboard.svelte
@@ -27,6 +27,7 @@
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
+ grid-auto-rows: min-content;
gap: 0.5rem;
max-width: 2000px;
margin: 0 auto;
@@ -35,18 +36,21 @@
@media (min-width: 1200px) {
.dashboard-grid {
grid-template-columns: repeat(4, 1fr);
+ grid-auto-rows: min-content;
}
}
@media (min-width: 1600px) {
.dashboard-grid {
grid-template-columns: repeat(5, 1fr);
+ grid-auto-rows: min-content;
}
}
@media (min-width: 2000px) {
.dashboard-grid {
grid-template-columns: repeat(6, 1fr);
+ grid-auto-rows: min-content;
}
}
</style>
diff --git a/src/lib/components/layout/Header.svelte b/src/lib/components/layout/Header.svelte
index f7bc40f..40042aa 100644
--- a/src/lib/components/layout/Header.svelte
+++ b/src/lib/components/layout/Header.svelte
@@ -26,8 +26,10 @@
<header class="header">
<div class="header-left">
- <h1 class="logo">SITUATION MONITOR</h1>
- <span class="version">v2.0</span>
+ <h1 class="logo">
+ SITUATION MONITOR
+ <span class="version">2.0</span>
+ </h1>
</div>
<div class="header-center">
@@ -79,12 +81,13 @@
position: sticky;
top: 0;
z-index: 100;
+ gap: 1rem;
}
.header-left {
display: flex;
align-items: baseline;
- gap: 0.5rem;
+ flex-shrink: 0;
}
.logo {
@@ -93,16 +96,25 @@
letter-spacing: 0.1em;
color: var(--text-primary);
margin: 0;
+ display: flex;
+ align-items: baseline;
+ gap: 0.5rem;
}
.version {
- font-size: 0.6rem;
+ font-size: 0.5rem;
+ font-weight: 500;
color: var(--text-muted);
+ opacity: 0.5;
+ vertical-align: super;
}
.header-center {
display: flex;
align-items: center;
+ flex: 1;
+ justify-content: center;
+ min-width: 0;
}
.refresh-status {
@@ -112,8 +124,11 @@
}
.status-text {
- font-size: 0.65rem;
- color: var(--text-secondary);
+ font-size: 0.6rem;
+ color: var(--text-muted);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.status-text.loading {
@@ -124,6 +139,7 @@
display: flex;
align-items: center;
gap: 0.5rem;
+ flex-shrink: 0;
}
.header-btn {
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 8772533..4f1e8c2 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -413,7 +413,6 @@
.map-slot {
grid-column: 1 / -1;
- min-height: 300px;
}
@media (max-width: 768px) {