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.

Add hover titles to truncated table cells

rcourtman1ca4ecccb6ee
diff --git a/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx b/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx
index 7b5a2ad618..e563cd8aa4 100644
--- a/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx
+++ b/frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx
@@ -87,8 +87,8 @@ export const PveNodesTable: Component<PveNodesTableProps> = (props) => {
class="mt-1.5"
/>
<div class="min-w-0 flex-1">
- <p class="font-medium text-base-content truncate">{node.name}</p>
- <p class="text-xs text-muted truncate">{node.host}</p>
+ <p class="font-medium text-base-content truncate" title={node.name}>{node.name}</p>
+ <p class="text-xs text-muted truncate" title={node.host}>{node.host}</p>
</div>
</div>
<Show when={node.type === 'pve' && 'isCluster' in node && node.isCluster}>
@@ -338,8 +338,8 @@ export const PbsNodesTable: Component<PbsNodesTableProps> = (props) => {
class="mt-1.5"
/>
<div class="min-w-0 flex-1">
- <p class="font-medium text-base-content truncate">{node.name}</p>
- <p class="text-xs text-muted truncate">{node.host}</p>
+ <p class="font-medium text-base-content truncate" title={node.name}>{node.name}</p>
+ <p class="text-xs text-muted truncate" title={node.host}>{node.host}</p>
</div>
</div>
</div>
@@ -500,8 +500,8 @@ export const PmgNodesTable: Component<PmgNodesTableProps> = (props) => {
class="mt-1.5"
/>
<div class="min-w-0 flex-1">
- <p class="font-medium text-base-content truncate">{node.name}</p>
- <p class="text-xs text-muted truncate">{node.host}</p>
+ <p class="font-medium text-base-content truncate" title={node.name}>{node.name}</p>
+ <p class="text-xs text-muted truncate" title={node.host}>{node.host}</p>
</div>
</div>
</div>
diff --git a/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx b/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx
index 4083ad0005..6ae51ad6d2 100644
--- a/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx
+++ b/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx
@@ -43,7 +43,10 @@ export function AlertHistoryTableAlertRow(props: AlertHistoryTableAlertRowProps)
<span class={sourcePresentation().className}>{sourcePresentation().label}</span>
</TableCell>
- <TableCell class="max-w-[150px] truncate p-1 px-1 font-medium text-base-content sm:p-1.5 sm:px-2">
+ <TableCell
+ class="max-w-[150px] truncate p-1 px-1 font-medium text-base-content sm:p-1.5 sm:px-2"
+ title={props.alert.resourceName}
+ >
{props.alert.resourceName}
</TableCell>
@@ -76,7 +79,10 @@ export function AlertHistoryTableAlertRow(props: AlertHistoryTableAlertRowProps)
</span>
</TableCell>
- <TableCell class="hidden truncate p-1 px-1 text-muted lg:table-cell sm:p-1.5 sm:px-2">
+ <TableCell
+ class="hidden truncate p-1 px-1 text-muted lg:table-cell sm:p-1.5 sm:px-2"
+ title={props.alert.nodeDisplayName || props.alert.node || ''}
+ >
{props.alert.nodeDisplayName || props.alert.node || '—'}
</TableCell>