Skip to content

Commit 5b57c55

Browse files
committed
Some changes and suggestions.
1 parent b45fba8 commit 5b57c55

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

widgets/src/_standalone/ProcessOverview/Pagination.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
total: number;
1616
changePage: Function;
1717
} = $props();
18-
const totalAmountOfButtons: number = total / size;
18+
const totalAmountOfButtons: number = Math.ceil(total / size);
1919
const totalAmountOfPagesAsIntegerArray = Array.from(
2020
{ length: totalAmountOfButtons },
2121
(_, i) => i + 1
@@ -35,7 +35,7 @@
3535
>
3636
<div class="min-w-[200px] flex items-center text-sm dark:text-gray-300">
3737
<!-- Todo find a way to handle placeholders -->
38-
<span>{size * page - size}-{size * page} {t('of')} {total}</span>
38+
<span>{size * page - size}{size * page} {t('of')} {total}</span>
3939
</div>
4040
<div class="flex items-center space-x-2">
4141
<PaginationButton

widgets/src/_standalone/ProcessOverview/index.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import ErrorBanner from '$lib/ErrorBanner.svelte';
88
import Pagination from './Pagination.svelte';
99
10-
const { page_size, data_url } = config;
10+
const { page_size = '10', data_url } = config;
1111
1212
let error: boolean = $state(false);
1313
let data: ProgressData | null = $state(null);

widgets/src/lib/Table.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
class="hover:bg-neutral-300 dark:hover:bg-gray-800 border-b border-neutral-300 dark:border-neutral-800"
4444
>
4545
{#each row as cell, i}
46-
{#if cell.status}
46+
{#if 'step' === cell.type}
4747
<TableCell
4848
{cell}
4949
{row}

0 commit comments

Comments
 (0)