Skip to content

Modern Docker Management, Designed for Everyone

fix: image name container table overflow

Kyle Mendell3675cca816da
diff --git a/frontend/src/routes/containers/container-table.svelte b/frontend/src/routes/containers/container-table.svelte
index 5a12f6be2..7b0c02568 100644
--- a/frontend/src/routes/containers/container-table.svelte
+++ b/frontend/src/routes/containers/container-table.svelte
@@ -35,6 +35,7 @@
import * as Table from '$lib/components/ui/table/index.js';
import FlexRender from '$lib/components/ui/data-table/flex-render.svelte';
import { DataTableViewOptions } from '$lib/components/arcane-table/index.js';
+ import * as Tooltip from '$lib/components/ui/tooltip/index.js';
let {
containers = $bindable(),
@@ -140,7 +141,7 @@
{ accessorKey: 'names', id: 'name', title: m.common_name(), sortable: true, cell: NameCell },
{ accessorKey: 'id', title: m.common_id(), cell: IdCell },
{ accessorKey: 'state', title: m.common_state(), sortable: true, cell: StateCell },
- { accessorKey: 'image', title: m.common_image(), sortable: true },
+ { accessorKey: 'image', title: m.common_image(), sortable: true, cell: ImageCell },
{ accessorKey: 'status', title: m.common_status() },
{ accessorKey: 'ports', title: m.common_ports(), cell: PortsCell },
{ accessorKey: 'created', title: m.common_created(), sortable: true, cell: CreatedCell }
@@ -218,6 +219,17 @@
/>
{/snippet}
+{#snippet ImageCell({ item }: { item: ContainerSummaryDto })}
+ <Tooltip.Root>
+ <Tooltip.Trigger class="block max-w-[200px] cursor-default truncate text-left lg:max-w-[300px]">
+ {item.image}
+ </Tooltip.Trigger>
+ <Tooltip.Content>
+ <p>{item.image}</p>
+ </Tooltip.Content>
+ </Tooltip.Root>
+{/snippet}
+
{#snippet CreatedCell({ item }: { item: ContainerSummaryDto })}
<span class="text-sm">
{item.created ? format(new Date(item.created * 1000), 'PP p') : m.common_na()}