diff --git a/web/src/lib/components/data-table/data-table-card.svelte b/web/src/lib/components/data-table/data-table-card.svelte index 5808074..419df3c 100644 --- a/web/src/lib/components/data-table/data-table-card.svelte +++ b/web/src/lib/components/data-table/data-table-card.svelte @@ -10,7 +10,8 @@ toolbar, children }: { - title: string; + /** Без title — как в shadcn dashboard-01: сразу toolbar и таблица */ + title?: string; description?: string; toolbar?: Snippet; children: Snippet; @@ -19,12 +20,14 @@ -
- {title} - {#if description} - {description} - {/if} -
+ {#if title} +
+ {title} + {#if description} + {description} + {/if} +
+ {/if} {#if toolbar} {@render toolbar()} {/if} diff --git a/web/src/lib/components/data-table/sortable-th.svelte b/web/src/lib/components/data-table/sortable-th.svelte index 621993b..e75724b 100644 --- a/web/src/lib/components/data-table/sortable-th.svelte +++ b/web/src/lib/components/data-table/sortable-th.svelte @@ -1,6 +1,5 @@ - - + diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte index 8adcb96..ec05a59 100644 --- a/web/src/routes/+page.svelte +++ b/web/src/routes/+page.svelte @@ -666,8 +666,8 @@ {/snippet} - - + + - - + + - - + + - - + + - - + + - - + + {/snippet} {#snippet children()} - + {#snippet toolbar()}
- - + + {#if pageUsernames.length > 0} Имя Истекает - + + Действия +