From b96d78f7c35508472f263fb02e366c9340327389 Mon Sep 17 00:00:00 2001 From: NeilJo-GY <43027886+NeilJo-GY@users.noreply.github.com> Date: Thu, 29 Oct 2026 13:20:34 +0800 Subject: [PATCH] Share thin scrollbar styling across ranch scroll panes. Co-authored-by: Cursor --- .../src/ranch-shell/RanchChatShell.tsx | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx b/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx index 13329a3..6c0c0d9 100644 --- a/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx +++ b/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx @@ -6886,6 +6886,23 @@ export function RanchChatShell(props: RanchChatShellProps) { [data-ranch-chat-shell] textarea.ranch-composer-field:focus-visible { outline: none; } + .ranch-thin-scroll { + scrollbar-width: thin; + scrollbar-color: rgba(148, 163, 184, 0.45) transparent; + } + .ranch-thin-scroll::-webkit-scrollbar { + width: 10px; + height: 10px; + } + .ranch-thin-scroll::-webkit-scrollbar-track { + background: transparent; + } + .ranch-thin-scroll::-webkit-scrollbar-thumb { + background-color: rgba(148, 163, 184, 0.4); + border: 3px solid transparent; + border-radius: 999px; + background-clip: padding-box; + } `}
-