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.

Merge remote-tracking branch 'origin/main' into fix/storage-tables-phone-and-drawer

rcourtman339d69ffd2aa
diff --cc frontend-modern/src/features/storageBackups/storagePagePresentation.ts
index 26c156fd0e,87652660c1..7b7f6f0ab1
--- a/frontend-modern/src/features/storageBackups/storagePagePresentation.ts
+++ b/frontend-modern/src/features/storageBackups/storagePagePresentation.ts
@@@ -70,27 -58,13 +70,27 @@@ export const isStoragePoolColumnVisibl
columnId: StoragePoolTableColumnId,
): boolean => STORAGE_POOL_VISIBLE_COLUMNS[layout].includes(columnId);
-export const getStoragePoolColumnWidthPercent = (
+// On phones the pool row sheds the desktop cell gutter the same way its
+// headers (via the shared container query) and the physical-disk rows do:
+// four cells at 12px each were 48px of a 361px row, and the measured values
+// fit the tracks with only a pixel or two to spare.
+export const STORAGE_POOL_PHONE_CELL_PADDING_CLASS = '!px-1';
+
+export const getStoragePoolCellPaddingClass = (layout: StoragePoolTableLayoutMode): string =>
+ layout === 'narrow' || layout === 'compact' ? STORAGE_POOL_PHONE_CELL_PADDING_CLASS : '';
+
+export const getStoragePoolColumnWidthStyle = (
layout: StoragePoolTableLayoutMode,
columnId: StoragePoolTableColumnId,
-): number => STORAGE_POOL_COLUMN_WIDTHS[layout][columnId] ?? 0;
+): JSX.CSSProperties =>
+ getPlatformTableWeightedColumnWidthStyle(
+ columnId,
+ STORAGE_POOL_COLUMN_WEIGHTS[layout],
+ STORAGE_POOL_VISIBLE_COLUMNS[layout],
+ );
const STORAGE_POOL_TABLE_HEADER_CLASS =
- 'overflow-hidden text-ellipsis whitespace-nowrap text-[10px] sm:text-[11px] lg:text-xs uppercase tracking-wider';
+ 'overflow-hidden text-ellipsis whitespace-nowrap text-[10px] lg:text-xs uppercase tracking-wider';
export const STORAGE_VIEW_OPTIONS: readonly StorageViewOption[] = [
{ value: 'pools', label: 'Storage' },