Skip to content

Commit fa19a99

Browse files
committed
fix: flow list overflows (#121)
Fixes #121
1 parent ecb0a4f commit fa19a99

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
{/snippet}
7979
</Navigation.Rail>
8080
<Toaster {toaster} width="min-w-md"/>
81-
<div class="flex gap-2 items-center justify-center h-full overflow-y-auto">
81+
<div class="flex flex-col gap-2 items-center justify-center h-full overflow-y-auto">
8282
{@render children()}
8383
</div>
8484
</div>

src/routes/flows/+page.svelte

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{#await data.flows}
4646
<p>Loading...</p>
4747
{:then myFlows}
48-
<List>
48+
<List class="max-h-4/5 overflow-y-auto">
4949
<HandleError element={myFlows}>
5050
{#snippet success(element)}
5151
{#each element as flow}
@@ -70,15 +70,15 @@
7070
{/each}
7171
{/snippet}
7272
</HandleError>
73-
<div class="flex justify-center gap-2">
74-
<LoadingButton class="px-4 py-2" onclick={oncreateflow}>
75-
{#snippet idle()}
76-
<IconPlus/>
77-
{/snippet}
78-
</LoadingButton>
79-
<ImportFlowButton {apiProps} metadatas={data.metadatas} templates={data.templates}/>
80-
</div>
8173
</List>
74+
<div class="flex justify-center gap-2">
75+
<LoadingButton class="px-4 py-2" onclick={oncreateflow}>
76+
{#snippet idle()}
77+
<IconPlus/>
78+
{/snippet}
79+
</LoadingButton>
80+
<ImportFlowButton {apiProps} metadatas={data.metadatas} templates={data.templates}/>
81+
</div>
8282
{:catch error}
8383
<p>{error.message}</p>
8484
{/await}

0 commit comments

Comments
 (0)