Skip to content

Commit deba6e6

Browse files
committed
Add loading spinner to graph status bar
1 parent 6d39139 commit deba6e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/webviews/apps/plus/graph/GraphWrapper.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ export function GraphWrapper({
320320
{graphList.length} commit{graphList.length ? 's' : ''}
321321
</span>
322322
)}
323+
{isLoading && (
324+
<span className={'icon--loading'}/>
325+
)}
323326
</div>
324327
<div className="actionbar__group">
325328
<span className="badge">Preview</span>

src/webviews/apps/plus/graph/graph.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,10 @@ a {
228228
font-family: codicon;
229229
content: '\eb19';
230230
}
231-
animation: spin 1s infinite linear;
232-
animation-delay: 0.2s;
231+
transform-origin: 50% 42%;
232+
animation: spin .7s steps(30) infinite;
233233

234234
@keyframes spin {
235-
0% {
236-
transform: rotate(0deg);
237-
}
238235
100% {
239236
transform: rotate(360deg);
240237
}

0 commit comments

Comments
 (0)