Skip to content

Commit

Permalink
Fixed loading feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed May 4, 2024
1 parent 9e4742a commit d14dd64
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/app/AddProject.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import Button from '@components/widgets/Button.svelte';
import ProjectPreview from './ProjectPreview.svelte';
import { getTemplates } from '../../examples/examples';
import Loading from './Loading.svelte';
import type Project from '@models/Project';
import Spinning from './Spinning.svelte';
export let add: (newProject: Project) => void;
Expand Down Expand Up @@ -37,7 +37,7 @@
<div class="templates">
{#each templates as project}
<ProjectPreview {project} action={() => add(project)} />{:else}
<Loading></Loading>
<div class="center"><Spinning large></Spinning></div>
{/each}
</div>
</Dialog>
Expand All @@ -49,4 +49,10 @@
flex-direction: column;
gap: var(--wordplay-spacing);
}
.center {
display: flex;
flex-direction: row;
justify-content: center;
}
</style>

0 comments on commit d14dd64

Please sign in to comment.