瀏覽代碼

Updates loading spinner in graph status bar

main
Keith Daulton 2 年之前
父節點
當前提交
c6b30e571d
共有 2 個檔案被更改,包括 11 行新增6 行删除
  1. +5
    -1
      src/webviews/apps/plus/graph/GraphWrapper.tsx
  2. +6
    -5
      src/webviews/apps/plus/graph/graph.scss

+ 5
- 1
src/webviews/apps/plus/graph/GraphWrapper.tsx 查看文件

@ -481,7 +481,11 @@ export function GraphWrapper({
showing {graphList.length} item{graphList.length ? 's' : ''}
</span>
)}
{isLoading && <span className="actionbar__loading icon--loading icon-modifier--spin" />}
{isLoading && (
<span className="actionbar__loading">
<span className="icon--loading icon-modifier--spin" />
</span>
)}
</div>
<div className="actionbar__group">
<span className="badge">Preview</span>

+ 6
- 5
src/webviews/apps/plus/graph/graph.scss 查看文件

@ -52,11 +52,11 @@ a {
&__details {}
&__loading {
position: relative;
top: 1px;
left: 0.5rem;
font-size: 1.2rem;
margin-right: 1rem; // adds "padding" to stop the overflow from clipping the spin
> * {
display: inline-block;
}
}
a {
@ -376,7 +376,8 @@ a {
&__container {
display: flex;
flex-direction: column;
height: calc(100vh - 2px); // shoot me -- the 2px is to stop the vertical scrollbar from showing up
// height: calc(100vh - 2px); // shoot me -- the 2px is to stop the vertical scrollbar from showing up
height: 100vh; // shoot me -- the 2px is to stop the vertical scrollbar from showing up
gap: 0;
padding: 0 2px;
}

Loading…
取消
儲存