Browse Source

Add loading spinner to graph status bar

main
Miggy Eusebio 2 years ago
parent
commit
deba6e6255
No known key found for this signature in database GPG Key ID: 7C2C0144063354A2
2 changed files with 5 additions and 5 deletions
  1. +3
    -0
      src/webviews/apps/plus/graph/GraphWrapper.tsx
  2. +2
    -5
      src/webviews/apps/plus/graph/graph.scss

+ 3
- 0
src/webviews/apps/plus/graph/GraphWrapper.tsx View File

@ -320,6 +320,9 @@ export function GraphWrapper({
{graphList.length} commit{graphList.length ? 's' : ''}
</span>
)}
{isLoading && (
<span className={'icon--loading'}/>
)}
</div>
<div className="actionbar__group">
<span className="badge">Preview</span>

+ 2
- 5
src/webviews/apps/plus/graph/graph.scss View File

@ -228,13 +228,10 @@ a {
font-family: codicon;
content: '\eb19';
}
animation: spin 1s infinite linear;
animation-delay: 0.2s;
transform-origin: 50% 42%;
animation: spin .7s steps(30) infinite;
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}

Loading…
Cancel
Save