Sfoglia il codice sorgente

Updates loading spinner in graph status bar

main
Keith Daulton 2 anni fa
parent
commit
c6b30e571d
2 ha cambiato i file con 11 aggiunte e 6 eliminazioni
  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 Vedi File

@ -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 Vedi File

@ -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;
}

Caricamento…
Annulla
Salva