From 9a8bfb8a3ac1922e6cef903e10d5933e20cddee6 Mon Sep 17 00:00:00 2001 From: cmliu Date: Wed, 29 Jul 2026 22:05:22 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E6=8C=87=E6=A0=87=E5=92=8C=E8=B5=84=E6=BA=90=E6=8C=87?= =?UTF-8?q?=E6=A0=87=E7=9A=84=E6=A0=B7=E5=BC=8F=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=97=B4=E8=B7=9D=E5=92=8C=E6=9C=80=E5=B0=8F=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/style.css | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/src/style.css b/frontend/src/style.css index 9528640..f9ce6fb 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -948,12 +948,12 @@ button:disabled { display: flex; flex: 0 0 auto; align-items: center; - gap: 4px; + gap: 0px; } .session-metrics > div { - min-width: 82px; - padding: 0 10px; + min-width: 64px; + padding: 0 7px; border-left: 1px solid #1c2932; } @@ -981,6 +981,11 @@ button:disabled { white-space: nowrap; } +.resource-metric + .resource-metric { + padding-left: 9px; + border-left: 1px solid #1c2932; +} + .resource-metric-line { display: flex; min-width: 0; @@ -1963,8 +1968,8 @@ button:disabled { } .session-metrics > div { - min-width: 72px; - padding: 0 7px; + min-width: 58px; + padding: 0 5px; } .session-metrics > div:first-child { From 6c848094d039c1ee1a9bfa231bc10b30a1166556 Mon Sep 17 00:00:00 2001 From: cmliu Date: Wed, 29 Jul 2026 22:07:01 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E6=8C=87=E6=A0=87=E7=9A=84=E6=9C=80=E5=B0=8F=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E4=BB=A5=E4=BC=98=E5=8C=96=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/style.css b/frontend/src/style.css index f9ce6fb..8b98df2 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -952,7 +952,7 @@ button:disabled { } .session-metrics > div { - min-width: 64px; + min-width: 53px; padding: 0 7px; border-left: 1px solid #1c2932; } From fc98a4ae70093a5ee473bb892e3b99a22706647f Mon Sep 17 00:00:00 2001 From: cmliu Date: Wed, 29 Jul 2026 22:26:16 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E8=A1=A8=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=91=BD=E4=BB=A4=E5=88=97=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=B9=B6=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 2 +- frontend/src/process-manager.ts | 4 ++-- frontend/src/style.css | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 6c2e7b6..4b05cc0 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -463,7 +463,7 @@ - 名称/命令行 + diff --git a/frontend/src/process-manager.ts b/frontend/src/process-manager.ts index 122add3..9def423 100644 --- a/frontend/src/process-manager.ts +++ b/frontend/src/process-manager.ts @@ -33,7 +33,7 @@ interface ProcessEntry { command: string; } -type ProcessSortKey = 'pid' | 'user' | 'memoryBytes' | 'memoryPercent' | 'cpuPercent' | 'state' | 'time'; +type ProcessSortKey = 'pid' | 'user' | 'memoryBytes' | 'memoryPercent' | 'cpuPercent' | 'state' | 'time' | 'command'; type SortDirection = 'ascending' | 'descending'; interface ProcessSnapshot { @@ -202,7 +202,7 @@ export class ProcessManager { this.sortDirection = this.sortDirection === 'ascending' ? 'descending' : 'ascending'; } else { this.sortKey = key; - this.sortDirection = key === 'user' || key === 'state' ? 'ascending' : 'descending'; + this.sortDirection = key === 'user' || key === 'state' || key === 'command' ? 'ascending' : 'descending'; } this.updateSortHeaders(); this.render(); diff --git a/frontend/src/style.css b/frontend/src/style.css index 8b98df2..8521239 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -1395,7 +1395,8 @@ button:disabled { .process-table th:nth-child(5) { width: 7%; } .process-table th:nth-child(6) { width: 6%; } .process-table th:nth-child(7) { width: 9%; } -.process-table th:nth-child(8) { width: 47%; text-align: left; } +.process-table th:nth-child(8) { width: 47%; text-align: center; } +.process-table th:nth-child(8) .process-sort { text-align: center; } .process-sort { position: relative; From 591cd521f5967f5eedb55ce54569f99c52ec5cd2 Mon Sep 17 00:00:00 2001 From: cmliu Date: Wed, 29 Jul 2026 23:16:37 +0800 Subject: [PATCH 4/4] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20xterm-viewport?= =?UTF-8?q?=20=E7=9A=84=E6=B0=B4=E5=B9=B3=E6=BA=A2=E5=87=BA=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E6=A0=B7=E5=BC=8F=E4=BB=A5=E4=BC=98=E5=8C=96=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/style.css b/frontend/src/style.css index 8521239..4e509cc 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -1165,6 +1165,7 @@ button:disabled { } .xterm-viewport { + overflow-x: hidden; scrollbar-color: #31424e transparent; scrollbar-width: thin; }