From f0076b0ca63bbc543d151f6f362f7f9783d637d2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 13 Aug 2026 17:27:47 -0700 Subject: [PATCH] feat(ui): thicken chat effort slider into capsule rail (#123380) Restyle the effort popover slider from a 3px line to a full-height capsule rail with a pill thumb. Retune the fill and dots for the tall track. Verify the result in both dark and light themes. --- ui/src/styles/chat/layout.css | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/ui/src/styles/chat/layout.css b/ui/src/styles/chat/layout.css index 9e3dc5206192..bc1c0181346f 100644 --- a/ui/src/styles/chat/layout.css +++ b/ui/src/styles/chat/layout.css @@ -4911,7 +4911,7 @@ button.chat-reply-preview--message:disabled { .chat-controls__effort-scale { display: flex; justify-content: space-between; - margin: 3px 6px -2px; + margin: 3px 6px 0; color: var(--muted); font-size: 10px; font-weight: 550; @@ -4923,7 +4923,7 @@ button.chat-reply-preview--message:disabled { position: relative; display: flex; align-items: center; - height: 22px; + height: 26px; margin: 0 6px; } @@ -4933,7 +4933,7 @@ button.chat-reply-preview--message:disabled { display: flex; align-items: center; justify-content: space-between; - padding: 0 5px; + padding: 0 12px; pointer-events: none; } @@ -4950,7 +4950,7 @@ button.chat-reply-preview--message:disabled { position: relative; z-index: 1; width: 100%; - height: 22px; + height: 26px; margin: 0; padding: 0; background: transparent; @@ -4966,20 +4966,21 @@ button.chat-reply-preview--message:disabled { } .chat-controls__reasoning-range::-webkit-slider-runnable-track { - height: 3px; + height: 26px; + border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: var(--radius-full); background: linear-gradient( 90deg, - color-mix(in srgb, var(--text) 45%, transparent) var(--reasoning-fill, 0%), - color-mix(in srgb, var(--text) 14%, transparent) var(--reasoning-fill, 0%) + color-mix(in srgb, var(--text) 18%, transparent) var(--reasoning-fill, 0%), + color-mix(in srgb, var(--text) 7%, transparent) var(--reasoning-fill, 0%) ); } .chat-controls__reasoning-range::-webkit-slider-thumb { -webkit-appearance: none; - width: 14px; - height: 14px; - margin-top: -5.5px; + width: 28px; + height: 20px; + margin-top: 3px; border: none; border-radius: var(--radius-full); background: var(--text-strong); @@ -4999,20 +5000,21 @@ button.chat-reply-preview--message:disabled { } .chat-controls__reasoning-range::-moz-range-track { - height: 3px; + height: 26px; + border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: var(--radius-full); - background: color-mix(in srgb, var(--text) 14%, transparent); + background: color-mix(in srgb, var(--text) 7%, transparent); } .chat-controls__reasoning-range::-moz-range-progress { - height: 3px; + height: 24px; border-radius: var(--radius-full); - background: color-mix(in srgb, var(--text) 45%, transparent); + background: color-mix(in srgb, var(--text) 18%, transparent); } .chat-controls__reasoning-range::-moz-range-thumb { - width: 14px; - height: 14px; + width: 28px; + height: 20px; border: none; border-radius: var(--radius-full); background: var(--text-strong);