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.

Hide low-priority Alert History columns below lg breakpoint

rcourtmanc38a46b0b571
diff --git a/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx b/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx
index 59026efd4e..4083ad0005 100644
--- a/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx
+++ b/frontend-modern/src/features/alerts/AlertHistoryTableAlertRow.tsx
@@ -66,17 +66,17 @@ export function AlertHistoryTableAlertRow(props: AlertHistoryTableAlertRowProps)
{props.alert.description}
</TableCell>
- <TableCell class="p-1 px-1 text-center text-muted sm:p-1.5 sm:px-2">
+ <TableCell class="hidden p-1 px-1 text-center text-muted lg:table-cell sm:p-1.5 sm:px-2">
{props.alert.duration}
</TableCell>
- <TableCell class="p-1 px-1 text-center sm:p-1.5 sm:px-2">
+ <TableCell class="hidden p-1 px-1 text-center lg:table-cell sm:p-1.5 sm:px-2">
<span class={historyStatusPresentation().className}>
{historyStatusPresentation().label}
</span>
</TableCell>
- <TableCell class="truncate p-1 px-1 text-muted 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">
{props.alert.nodeDisplayName || props.alert.node || '—'}
</TableCell>
diff --git a/frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx b/frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx
index 4cbb5e07de..935a9bc777 100644
--- a/frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx
+++ b/frontend-modern/src/features/alerts/AlertHistoryTableSection.tsx
@@ -31,7 +31,7 @@ export function AlertHistoryTableSection(props: AlertHistoryTableSectionProps) {
}
>
<TableCard class="mb-2">
- <Table class="w-full min-w-[max-content] text-[11px] sm:text-sm">
+ <Table class="w-full text-[11px] sm:text-sm">
<TableHeader>
<TableRow class="border-b border-border bg-surface-hover text-muted">
<TableHead class="p-1 px-1 text-left text-[10px] font-medium uppercase tracking-wider sm:p-1.5 sm:px-2 sm:text-xs">
@@ -52,13 +52,13 @@ export function AlertHistoryTableSection(props: AlertHistoryTableSectionProps) {
<TableHead class="p-1 px-1 text-left text-[10px] font-medium uppercase tracking-wider sm:p-1.5 sm:px-2 sm:text-xs">
Message
</TableHead>
- <TableHead class="p-1 px-1 text-center text-[10px] font-medium uppercase tracking-wider sm:p-1.5 sm:px-2 sm:text-xs">
+ <TableHead class="hidden p-1 px-1 text-center text-[10px] font-medium uppercase tracking-wider lg:table-cell sm:p-1.5 sm:px-2 sm:text-xs">
Duration
</TableHead>
- <TableHead class="p-1 px-1 text-center text-[10px] font-medium uppercase tracking-wider sm:p-1.5 sm:px-2 sm:text-xs">
+ <TableHead class="hidden p-1 px-1 text-center text-[10px] font-medium uppercase tracking-wider lg:table-cell sm:p-1.5 sm:px-2 sm:text-xs">
Status
</TableHead>
- <TableHead class="p-1 px-1 text-left text-[10px] font-medium uppercase tracking-wider sm:p-1.5 sm:px-2 sm:text-xs">
+ <TableHead class="hidden p-1 px-1 text-left text-[10px] font-medium uppercase tracking-wider lg:table-cell sm:p-1.5 sm:px-2 sm:text-xs">
Node
</TableHead>
<TableHead class="p-1 px-1 text-center text-[10px] font-medium uppercase tracking-wider sm:p-1.5 sm:px-2 sm:text-xs">