瀏覽代碼

Add loading spinner to graph status bar

main
Miggy Eusebio 2 年之前
父節點
當前提交
deba6e6255
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 7C2C0144063354A2
共有 2 個文件被更改,包括 5 次插入5 次删除
  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 查看文件

@ -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 查看文件

@ -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…
取消
儲存