diff --git a/src/renderer/src/components/status-bar/ResourceUsageStatusSegment.tsx b/src/renderer/src/components/status-bar/ResourceUsageStatusSegment.tsx
index 9ec4d1e4ccb..9c4098b7979 100644
--- a/src/renderer/src/components/status-bar/ResourceUsageStatusSegment.tsx
+++ b/src/renderer/src/components/status-bar/ResourceUsageStatusSegment.tsx
@@ -55,6 +55,11 @@ type SortOption = 'memory' | 'cpu' | 'name'
const METRIC_COLUMNS_CLS = 'flex items-center shrink-0 tabular-nums'
const CPU_COLUMN_CLS = 'w-12 text-right'
const MEM_COLUMN_CLS = 'w-16 text-right'
+// Why: every row (session, worktree, repo, app) AND the column header
+// reserve this same trailing gutter so the CPU/Memory columns line up
+// regardless of whether a row carries a kill-X. The X button sits inside
+// this gutter for session rows; other rows leave it blank.
+const ROW_TRAILING_GUTTER_CLS = 'w-5 shrink-0 flex items-center justify-end'
// ─── Formatters ─────────────────────────────────────────────────────
@@ -191,9 +196,12 @@ function MetricPair({
function AppSubRow({ label, values }: { label: string; values: UsageValues }): React.JSX.Element {
return (
-
+
{label}
-
+
+
+
+
)
}
@@ -230,6 +238,7 @@ function AppSection({
+
@@ -338,24 +347,28 @@ function SessionRow({
{session.label}
- {/* Why: bound sessions hide the X until the row is hovered/focused
- (calm list); orphan sessions show it always so the "this is
- reclaimable" affordance survives. Mirrors Settings > Manage Sessions. */}
-
+ {/* Why: kill X lives inside the shared trailing gutter so CPU/Memory
+ columns stay aligned with the column header (whose gutter is empty).
+ Bound sessions hide the X until the row is hovered/focused (calm
+ list); orphan sessions show it always so the "this is reclaimable"
+ affordance survives. Mirrors Settings > Manage Sessions. */}
+
+
+
)
}
@@ -496,6 +509,7 @@ function WorktreeRow({
)}
+
@@ -602,7 +616,10 @@ function ResourceTree({
)}
-
+
+
+
+
@@ -1099,35 +1116,41 @@ export function ResourceUsageStatusSegment({
>
Name
-
-
-
+
+
+
+
+
+ {/* Why: empty trailing gutter so the CPU/Memory header
+ cells line up with the row cells; rows reserve the same
+ width for the kill-X button. */}
+