Skip to content

Modern Docker Management, Designed for Everyone

fix: volumes table truncate not being applied

Kyle Mendellce50de7b96ad
diff --git a/src/lib/components/ui/table/table-cell.svelte b/src/lib/components/ui/table/table-cell.svelte
index 955ed7770..55cc7d39f 100644
--- a/src/lib/components/ui/table/table-cell.svelte
+++ b/src/lib/components/ui/table/table-cell.svelte
@@ -6,6 +6,6 @@
let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLTdAttributes> = $props();
</script>
-<td bind:this={ref} class={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...restProps}>
+<td bind:this={ref} class={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0 truncate overflow-hidden whitespace-nowrap text-ellipsis', className)} {...restProps}>
{@render children?.()}
</td>
diff --git a/src/lib/components/ui/table/table.svelte b/src/lib/components/ui/table/table.svelte
index 2c89f7f8c..1e578b289 100644
--- a/src/lib/components/ui/table/table.svelte
+++ b/src/lib/components/ui/table/table.svelte
@@ -7,7 +7,7 @@
</script>
<div class="relative w-full overflow-auto">
- <table bind:this={ref} class={cn('w-full caption-bottom text-sm', className)} {...restProps}>
+ <table bind:this={ref} class={cn('w-full caption-bottom text-sm table-fixed', className)} {...restProps}>
{@render children?.()}
</table>
</div>
diff --git a/src/lib/components/universal-table.svelte b/src/lib/components/universal-table.svelte
index 911d67e94..88c42dc2e 100644
--- a/src/lib/components/universal-table.svelte
+++ b/src/lib/components/universal-table.svelte
@@ -279,7 +279,7 @@
{@render rows({ item: row.original, index: row.index })}
{:else}
{#each row.getVisibleCells() as cell (cell.id)}
- <Table.Cell>
+ <Table.Cell class="w-32">
<FlexRender content={cell.column.columnDef.cell} context={cell.getContext()} />
</Table.Cell>
{/each}