From 5bb5faa4b79c52f28875336edfc6b57306d36a7a Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Tue, 7 Apr 2026 19:48:07 -0400 Subject: [PATCH] fix(cliproxy): tighten sidebar routing presentation --- .../account/account-safety-warning-card.tsx | 60 +++++-------------- .../cliproxy/routing-guidance-card.tsx | 36 ++++++++--- 2 files changed, 42 insertions(+), 54 deletions(-) diff --git a/ui/src/components/account/account-safety-warning-card.tsx b/ui/src/components/account/account-safety-warning-card.tsx index 15918095..b412caae 100644 --- a/ui/src/components/account/account-safety-warning-card.tsx +++ b/ui/src/components/account/account-safety-warning-card.tsx @@ -95,67 +95,45 @@ export function AccountSafetyWarningCard({ role="alert" className={cn( 'relative overflow-hidden rounded-xl border border-amber-500/30 bg-gradient-to-br from-amber-50 via-background to-rose-50/70 shadow-sm dark:from-amber-950/20 dark:to-rose-950/20', - compact && - 'rounded-lg border-amber-400/25 bg-gradient-to-r from-amber-50/90 via-background to-background shadow-none dark:from-amber-950/10 dark:to-background', className )} >
-
+
-
+
-

{title}

+

{title}

{subtitle}

High Risk
- {compact ? ( -
-

{firstLine}

-

- {secondLine} -

-
- ) : ( -
-

{firstLine}

-

{secondLine}

-

- CCS is provided as-is and does not take responsibility for suspension, bans, or access - loss from upstream providers. -

-
- )} +
+

{firstLine}

+

{secondLine}

+

+ CCS is provided as-is and does not take responsibility for suspension, bans, or access + loss from upstream providers. +

+
diff --git a/ui/src/components/cliproxy/routing-guidance-card.tsx b/ui/src/components/cliproxy/routing-guidance-card.tsx index 1fb1eac9..73c85590 100644 --- a/ui/src/components/cliproxy/routing-guidance-card.tsx +++ b/ui/src/components/cliproxy/routing-guidance-card.tsx @@ -51,14 +51,32 @@ export function RoutingGuidanceCard({ }; return ( -
-
- - Routing - {isSaving && } +
+
+
+
+ +
+ + Routing + + {isSaving && }
-
+
+
{( Object.entries(STRATEGY_COPY) as Array< [RoutingStrategy, { title: string; description: string }] @@ -70,10 +88,10 @@ export function RoutingGuidanceCard({ key={strategy} type="button" className={cn( - 'relative z-10 rounded-[4px] px-2 py-0.5 text-[10px] font-medium transition-all duration-200', + 'relative z-10 flex items-center justify-center rounded px-2.5 py-0.5 text-[10px] font-medium whitespace-nowrap transition-colors duration-200', active - ? 'bg-background text-foreground shadow-[0_1px_2px_rgba(0,0,0,0.06)] ring-1 ring-black/5 dark:ring-white/10' - : 'text-muted-foreground hover:bg-black/5 hover:text-foreground dark:hover:bg-white/5' + ? 'text-foreground group-hover/routing:text-primary' + : 'text-muted-foreground/70 hover:text-foreground/90 group-hover/routing:text-muted-foreground/90' )} onClick={() => handleApply(strategy)} disabled={isLoading || isSaving || !!error}