mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Put a transition:fade on the spinner
This commit is contained in:
parent
aeca0e0544
commit
6559b41734
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="typescript">
|
<script lang="typescript">
|
||||||
|
import { fade } from 'svelte/transition';
|
||||||
import type { I18n } from "anki/i18n";
|
import type { I18n } from "anki/i18n";
|
||||||
import type pb from "anki/backend_proto";
|
import type pb from "anki/backend_proto";
|
||||||
import { getGraphData, RevlogRange } from "./graph-helpers";
|
import { getGraphData, RevlogRange } from "./graph-helpers";
|
||||||
|
@ -127,7 +128,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#await dataPromise}
|
{#await dataPromise}
|
||||||
<div class="spin">◐</div>
|
<div class="spin" transition:fade="{{duration=50}}">◐</div>
|
||||||
{:then sourceData}
|
{:then sourceData}
|
||||||
<div tabindex="-1" class="no-focus-outline">
|
<div tabindex="-1" class="no-focus-outline">
|
||||||
{#each graphs as Graph}
|
{#each graphs as Graph}
|
||||||
|
|
Loading…
Reference in a new issue