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.

Preserve disk labels and hover feedback across upstream integration

pulse-triage[bot]536b4cfb7625
diff --cc frontend-modern/src/components/Workloads/StackedDiskBar.tsx
index 90913e7afa,46c6d86628..48e0bfbdf9
--- a/frontend-modern/src/components/Workloads/StackedDiskBar.tsx
+++ b/frontend-modern/src/components/Workloads/StackedDiskBar.tsx
@@@ -198,48 -196,37 +198,48 @@@ export function StackedDiskBar(props: S
onMouseEnter={state.handleMouseEnter}
onMouseLeave={state.handleMouseLeave}
>
- <div class="flex h-full items-end justify-center gap-[3px]">
- <For each={presentation().verticalBars}>
- {(bar) => (
- <div
- class="group/disk relative h-full w-[5px] shrink-0 cursor-help overflow-hidden rounded-xs bg-surface-hover ring-1 ring-transparent transition-[transform,box-shadow,ring-color] duration-100 hover:scale-y-[1.08] hover:ring-base-content/30"
- title={bar.title}
- >
+ <div class="flex h-full items-center justify-center gap-1.5">
+ <Show when={presentation().verticalBarsLabel}>
+ <span
+ data-stacked-disk-max-label
+ class="shrink-0 text-[10px] font-semibold leading-none tabular-nums text-base-content"
+ title={presentation().verticalBarsLabelTitle}
+ >
+ {presentation().verticalBarsLabel}
+ </span>
+ </Show>
+ <div class="flex h-full items-end justify-center gap-[3px]">
+ <For each={presentation().verticalBars}>
+ {(bar) => (
<div
- class="group/disk relative h-full w-[5px] shrink-0 cursor-help overflow-hidden rounded-xs bg-surface-hover ring-1 ring-transparent transition-[transform,box-shadow,ring-color] duration-100 hover:scale-y-[1.08]"
- data-stacked-disk-fill="vertical"
- class="absolute inset-0 rounded-xs brightness-100 transition-[filter] duration-100 group-hover/disk:brightness-125"
++ class="group/disk relative h-full w-[5px] shrink-0 cursor-help overflow-hidden rounded-xs bg-surface-hover ring-1 ring-transparent transition-[transform,box-shadow,ring-color] duration-100 hover:scale-y-[1.08] hover:ring-base-content/30"
+ title={bar.title}
>
- <svg
- aria-hidden="true"
- class="absolute inset-0 h-full w-full"
- viewBox="0 0 100 100"
- preserveAspectRatio="none"
+ <div
+ data-stacked-disk-fill="vertical"
+ class="absolute inset-0 rounded-xs brightness-100 transition-[filter] duration-100 group-hover/disk:brightness-125"
>
- <rect
- class="metric-fill-geometry"
- x="0"
- y={invertPercent(bar.fillPercent)}
- width="100"
- height={clampPercent(bar.fillPercent)}
- rx="2"
- fill={bar.color}
- />
- </svg>
+ <svg
+ aria-hidden="true"
+ class="absolute inset-0 h-full w-full"
+ viewBox="0 0 100 100"
+ preserveAspectRatio="none"
+ >
+ <rect
+ class="metric-fill-geometry"
+ x="0"
+ y={invertPercent(bar.fillPercent)}
+ width="100"
+ height={clampPercent(bar.fillPercent)}
+ rx="2"
+ fill={bar.color}
+ />
+ </svg>
+ </div>
</div>
- </div>
- )}
- </For>
+ )}
+ </For>
+ </div>
</div>
</div>
</Show>