浏览代码

Add loading spinner to graph status bar

main
Miggy Eusebio 2 年前
父节点
当前提交
deba6e6255
找不到此签名对应的密钥 GPG 密钥 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);
}

正在加载...
取消
保存