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.

Left-align workload image column

rcourtmanaa1f07bd94f6
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index 837af2e8bb..83160c1686 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -265,8 +265,9 @@ regression protection.
per-row styling branches to the hot path.
App-container image cells must use the shared compact image formatter to
show the image leaf plus tag/version while preserving the full registry and
- namespace reference in tooltip/detail metadata; table rows should optimize
- for container/version scanning, not registry path inspection.
+ namespace reference in tooltip/detail metadata, and the image column must
+ stay left-aligned as text; table rows should optimize for
+ container/version scanning, not registry path inspection.
11. Extend workload drawer derivations and runtime wiring through `frontend-modern/src/components/Workloads/guestDrawerModel.ts` and `frontend-modern/src/components/Workloads/useGuestDrawerState.ts`, and extend drawer overview rendering through `frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx`, rather than rebuilding canonical guest identity, discovery routing, or drawer-local normalization inside `frontend-modern/src/components/Workloads/GuestDrawer.tsx`
Drawer history charts belong to `frontend-modern/src/components/Workloads/GuestDrawerHistory.tsx`.
History cards must let the plot area stretch to the card height instead of
diff --git a/frontend-modern/src/components/Workloads/GuestRow.tsx b/frontend-modern/src/components/Workloads/GuestRow.tsx
index 7b9a0685b6..508d1fe001 100644
--- a/frontend-modern/src/components/Workloads/GuestRow.tsx
+++ b/frontend-modern/src/components/Workloads/GuestRow.tsx
@@ -483,7 +483,7 @@ export function GuestRow(props: GuestRowProps) {
{/* Image */}
<Show when={isColVisible('image')}>
<td class="px-1.5 sm:px-2 py-0.5 align-middle">
- <div class="flex items-center justify-center gap-1.5">
+ <div class="flex items-center justify-start gap-1.5">
<Show
when={workloadType() === 'app-container' && dockerImage()}
fallback={
diff --git a/frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx b/frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx
index 9bbc8f6113..b93b77c54d 100644
--- a/frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx
@@ -24,6 +24,7 @@ export function WorkloadTableHeader(props: WorkloadTableHeaderProps) {
<For each={props.workloadTableVisibleColumns()}>
{(col) => {
const isFirst = () => col.id === props.visibleColumns()[0]?.id;
+ const isLeftAlignedTextColumn = () => isFirst() || col.id === 'image';
const sortKeyForCol = col.sortKey as WorkloadSortKey | undefined;
const isSortable = !!sortKeyForCol;
const isSorted = () => sortKeyForCol && props.sortKey() === sortKeyForCol;
@@ -31,7 +32,7 @@ export function WorkloadTableHeader(props: WorkloadTableHeaderProps) {
return (
<TableHead
class={`py-0.5 text-[11px] sm:text-xs font-medium uppercase tracking-wider whitespace-nowrap
- ${isFirst() ? 'pl-2 sm:pl-3 pr-1.5 sm:pr-2 text-left' : 'px-1.5 sm:px-2 text-center'} align-middle
+ ${isFirst() ? 'pl-2 sm:pl-3 pr-1.5 sm:pr-2' : 'px-1.5 sm:px-2'} ${isLeftAlignedTextColumn() ? 'text-left' : 'text-center'} align-middle
${isSortable ? 'cursor-pointer hover:bg-surface-hover' : ''}`}
data-workload-col={col.id}
style={getGuestColumnStyle(
@@ -44,7 +45,7 @@ export function WorkloadTableHeader(props: WorkloadTableHeaderProps) {
title={col.icon ? col.label : undefined}
>
<div
- class={`flex min-h-[14px] items-center gap-0.5 ${isFirst() ? 'justify-start' : 'justify-center'}`}
+ class={`flex min-h-[14px] items-center gap-0.5 ${isLeftAlignedTextColumn() ? 'justify-start' : 'justify-center'}`}
>
{col.icon ? (
<>
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index 410eb38eaa..9c512f1313 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -600,6 +600,7 @@ describe('GuestRow', () => {
const image = screen.getByText('nginx:latest');
expect(image).toBeTruthy();
expect(image.getAttribute('title')).toBe('ghcr.io/library/nginx:latest');
+ expect(image.closest('td')?.querySelector('div')?.className).toContain('justify-start');
});
it('shows update button for app-container guests', () => {