Skip to content

Commit 8e495d9

Browse files
ryan-williamsclaude
andcommitted
Add loading spinner overlay for view/year switches
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e99dbc3 commit 8e495d9

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

www/src/App.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,11 @@ export default function App() {
970970
attributionControl={false}
971971
/>
972972
</DeckGL>
973+
{loading && (
974+
<div className="loading-overlay">
975+
<div className="loading-spinner" />
976+
</div>
977+
)}
973978

974979
{/* Settings panel (when at top) */}
975980
{!posBottom && (

www/src/index.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,28 @@ html, body, #root {
6060
color: var(--kbd-text);
6161
}
6262

63+
/* Loading spinner overlay */
64+
.loading-overlay {
65+
position: absolute;
66+
inset: 0;
67+
display: flex;
68+
align-items: center;
69+
justify-content: center;
70+
pointer-events: none;
71+
z-index: 1;
72+
}
73+
.loading-spinner {
74+
width: 48px;
75+
height: 48px;
76+
border: 4px solid rgba(255, 255, 255, 0.2);
77+
border-top-color: rgba(255, 255, 255, 0.8);
78+
border-radius: 50%;
79+
animation: spin 0.8s linear infinite;
80+
}
81+
@keyframes spin {
82+
to { transform: rotate(360deg); }
83+
}
84+
6385
/* SpeedDial inline in bottom bar flex container (override fixed positioning) */
6486
.speed-dial-inline.kbd-speed-dial {
6587
position: relative !important;

0 commit comments

Comments
 (0)