From 93e92b034464d2d44cdc657d94f26c06f3224e17 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Sun, 4 Oct 2026 19:51:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(panel):=20drop=20the=20pid=20column=20from?= =?UTF-8?q?=20Info=20=E2=86=92=20Processes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pid sat in a column of its own on every row, beside CPU% and memory. It reads as a port number at a glance and is not what the list is read for; the row's name, CPU% and memory already say which process is which. --- src/ui/proc_usage.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/ui/proc_usage.rs b/src/ui/proc_usage.rs index 0754feb1..0d341376 100644 --- a/src/ui/proc_usage.rs +++ b/src/ui/proc_usage.rs @@ -17,7 +17,6 @@ use crate::ui::right_panel::{META, META_MONO}; const CPU_W: f32 = 40.; const MEM_W: f32 = 52.; -const PID_W: f32 = 44.; #[derive(Debug, Clone, Copy, PartialEq, Eq)] struct Sample { @@ -109,7 +108,7 @@ fn cell(text: String, w: f32, mono: SharedString, cx: &App) -> impl IntoElement .child(text) } -/// CPU%, memory and pid, right-aligned in fixed columns so rows line up. +/// CPU% and memory, right-aligned in fixed columns so rows line up. pub(crate) fn row_cells( p: &ProcEntry, cpu: &CpuTracker, @@ -128,10 +127,9 @@ pub(crate) fn row_cells( .child(cell( p.rss.map(compact_bytes).unwrap_or_default(), MEM_W, - mono.clone(), + mono, cx, )) - .child(cell(p.pid.to_string(), PID_W, mono, cx)) } /// The Total line under the tree, or nothing from a daemon that reports no @@ -169,10 +167,9 @@ pub(crate) fn total_row( .child(cell( rss.map(compact_bytes).unwrap_or_default(), MEM_W, - mono.clone(), + mono, cx, - )) - .child(cell(String::new(), PID_W, mono, cx)), + )), ), ) }