Skip to content

Commit

Permalink
Adding min width option to the data table
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyFigueroa committed Nov 4, 2024
1 parent ee2bef1 commit 12766dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/lib/components/k8s/DataTable/component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
export let name = ''
export let description = 'No description available'
export let minWidth = 1024
let rows = createStore()
$: ({ namespace, search, searchBy, searchTypes, sortAsc, sortBy, numResources } = rows)
Expand Down Expand Up @@ -244,7 +246,7 @@
</div>

<div class="table-scroll-container">
<div class="datatable">
<div class={`datatable min-w-[${minWidth}px]`}>
<div class="thead">
<div class="flex items-center">
{#each columns as [header, style], idx}
Expand Down

0 comments on commit 12766dd

Please sign in to comment.