Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: Truncate very long container names in Docker table

rcourtman5f747e8e2802
diff --git a/frontend-modern/src/components/Docker/DockerUnifiedTable.tsx b/frontend-modern/src/components/Docker/DockerUnifiedTable.tsx
index 7a51370038..1651f6cb1a 100644
--- a/frontend-modern/src/components/Docker/DockerUnifiedTable.tsx
+++ b/frontend-modern/src/components/Docker/DockerUnifiedTable.tsx
@@ -1281,7 +1281,12 @@ const DockerContainerRow: Component<{
{(column) => (
<td
class="py-0.5 align-middle whitespace-nowrap"
- style={{ "min-width": column.id === 'cpu' || column.id === 'memory' ? '140px' : undefined }}
+ style={{
+ "min-width": column.id === 'cpu' || column.id === 'memory' ? '140px' : undefined,
+ // Force resource column to respect truncation for very long names (issue #789)
+ "max-width": column.id === 'resource' ? '0' : undefined,
+ "width": column.id === 'resource' ? '40%' : undefined,
+ }}
>
{renderCell(column)}
</td>
@@ -1986,7 +1991,12 @@ const DockerServiceRow: Component<{
{(column) => (
<td
class="py-0.5 align-middle whitespace-nowrap"
- style={{ "min-width": column.id === 'cpu' || column.id === 'memory' ? '140px' : undefined }}
+ style={{
+ "min-width": column.id === 'cpu' || column.id === 'memory' ? '140px' : undefined,
+ // Force resource column to respect truncation for very long names (issue #789)
+ "max-width": column.id === 'resource' ? '0' : undefined,
+ "width": column.id === 'resource' ? '40%' : undefined,
+ }}
>
{renderCell(column)}
</td>