From 4f69abbe88fb0bd6782373b5eeebd665dfcafd4b Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Mon, 5 Jan 2026 14:31:55 -0500 Subject: [PATCH] fix(ui): clean up ProxyStatusWidget layout spacing - Separate header row (title + icon buttons) from version row - Compact update badge: h-4, px-1.5, gap-0.5 - Slightly more margin between rows (mt-1.5) - Fix badge conditional rendering --- .../monitoring/proxy-status-widget.tsx | 78 +++++++++---------- 1 file changed, 36 insertions(+), 42 deletions(-) diff --git a/ui/src/components/monitoring/proxy-status-widget.tsx b/ui/src/components/monitoring/proxy-status-widget.tsx index a67db32f..2417b6d6 100644 --- a/ui/src/components/monitoring/proxy-status-widget.tsx +++ b/ui/src/components/monitoring/proxy-status-widget.tsx @@ -272,7 +272,7 @@ export function ProxyStatusWidget() { isRunning ? 'border-green-500/30 bg-green-500/5' : 'border-muted bg-muted/30' )} > - {/* Header row: Status dot, title, version, update badge, icon buttons */} + {/* Header row: Status dot, title, icon buttons */}
{/* Status indicator */} @@ -283,54 +283,14 @@ export function ProxyStatusWidget() { )} /> CLIProxy Plus - - {/* Version in header */} - {currentVersion && ( - - v{currentVersion} - - )} - - {/* Clickable Update/Downgrade badge */} - {(hasUpdate || isUnstable) && targetVersion && ( - handleInstallVersion(targetVersion)} - title={`Click to ${isUnstable ? 'downgrade' : 'update'}`} - > - {isUnstable ? ( - <> - - {targetVersion} - - ) : ( - <> - - {targetVersion} - - )} - - )}
- {/* Right side: status icon + control buttons when running */} + {/* Right side: icon buttons when running */}
{isLoading ? ( ) : isRunning ? ( <> - {/* Icon buttons: Restart, Stop, Settings/Close */}
+ {/* Version row: version + update badge */} + {currentVersion && ( +
+ + v{currentVersion} + + {(hasUpdate || isUnstable) && targetVersion && ( + handleInstallVersion(targetVersion)} + title={`Click to ${isUnstable ? 'downgrade' : 'update'}`} + > + {isUnstable ? ( + + ) : ( + + )} + {targetVersion} + + )} +
+ )} + {/* Stats row when running */} {isRunning && status && (