Skip to content

Commit

Permalink
fix bad table display
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhem-lm committed Dec 31, 2024
1 parent 80da50a commit 1ad8bc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/lib/components/CapturesInputs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
on:previous={goToPreviousPage}
bind:currentPage={page}
{hasMore}
tableFixed={true}
>
<colgroup>
<col class="w-8" />
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/lib/components/HistoricInpts.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
on:previous={goToPreviousPage}
bind:currentPage={page}
hasMore={hasMoreCurrentRuns}
tableFixed={true}
>
{#if loading && (jobs == undefined || jobs?.length == 0)}
<div class="text-center text-tertiary text-xs py-2">Loading current runs...</div>
Expand Down Expand Up @@ -150,6 +151,7 @@
on:previous={goToPreviousPage}
bind:currentPage={page}
hasMore={hasMorePreviousRuns}
tableFixed={true}
>
{#if previousInputs === undefined}
<Skeleton layout={[[1], 0.5, [1]]} />
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/lib/components/table/DataTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
export let rowCount: number | undefined = undefined
export let hasMore: boolean = true
export let contentHeight: number = 0
export let tableFixed: boolean = false
let footerHeight: number = 0
let tableHeight: number = 0
Expand All @@ -42,7 +43,7 @@
>
<List justify="between" gap="none">
<div class="w-full overflow-auto min-h-0 grow">
<table class="table-fixed w-full">
<table class={tableFixed ? 'table-fixed w-full' : 'min-w-full'}>
<slot />
</table>
</div>
Expand Down

0 comments on commit 1ad8bc2

Please sign in to comment.