diff --git a/ui/desktop/src/components/ChatView.tsx b/ui/desktop/src/components/ChatView.tsx index 40fc1e65..3c7694cd 100644 --- a/ui/desktop/src/components/ChatView.tsx +++ b/ui/desktop/src/components/ChatView.tsx @@ -386,26 +386,28 @@ export default function ChatView({ activities={botConfig?.activities || null} /> ) : ( - - {filteredMessages.map((message, index) => ( -
- {isUserMessage(message) ? ( - - ) : ( - append(createUserMessage(text))} - appendMessage={(newMessage) => { - const updatedMessages = [...messages, newMessage]; - setMessages(updatedMessages); - }} - /> - )} -
- ))} + +
+ {filteredMessages.map((message, index) => ( +
+ {isUserMessage(message) ? ( + + ) : ( + append(createUserMessage(text))} + appendMessage={(newMessage) => { + const updatedMessages = [...messages, newMessage]; + setMessages(updatedMessages); + }} + /> + )} +
+ ))} +
{error && (
diff --git a/ui/desktop/src/components/sessions/SessionHistoryView.tsx b/ui/desktop/src/components/sessions/SessionHistoryView.tsx index 5794e69f..2f74d017 100644 --- a/ui/desktop/src/components/sessions/SessionHistoryView.tsx +++ b/ui/desktop/src/components/sessions/SessionHistoryView.tsx @@ -98,7 +98,7 @@ const SessionHistoryView: React.FC = ({ }; return ( -
+
{/* Top Row - back, info, reopen thread (fixed) */} diff --git a/ui/desktop/src/components/sessions/SessionViewComponents.tsx b/ui/desktop/src/components/sessions/SessionViewComponents.tsx index a5892835..85c3fd2a 100644 --- a/ui/desktop/src/components/sessions/SessionViewComponents.tsx +++ b/ui/desktop/src/components/sessions/SessionViewComponents.tsx @@ -77,7 +77,7 @@ export const SessionMessages: React.FC = ({ onRetry, }) => { return ( - +
diff --git a/ui/desktop/src/styles/main.css b/ui/desktop/src/styles/main.css index 6e6b2bb5..2fcf0167 100644 --- a/ui/desktop/src/styles/main.css +++ b/ui/desktop/src/styles/main.css @@ -148,6 +148,93 @@ --text-prominent-inverse: var(--grey-20); } /* end arcade colors */ + + /* Force scrollbars to be visible */ + [data-radix-scroll-area-viewport] { + scrollbar-width: auto !important; + -ms-overflow-style: auto !important; + } + + /* Override Radix UI ScrollArea styles */ + [data-radix-scroll-area-viewport] > div { + display: block !important; + } + + /* Native scrollbar styling */ + * { + scrollbar-width: auto; + scrollbar-color: var(--grey-80) transparent; + } + + .dark * { + scrollbar-color: var(--dark-grey-45) transparent; + } + + /* Webkit scrollbar styles */ + ::-webkit-scrollbar { + -webkit-appearance: none; + width: 12px; /* Increased from 8px */ + height: 12px; + background-color: transparent; + } + + ::-webkit-scrollbar-track { + background: transparent; + border-radius: 0; + } + + ::-webkit-scrollbar-thumb { + background-color: var(--grey-80); + border: 3px solid transparent; /* Creates padding effect */ + border-radius: 8px; + background-clip: padding-box; + min-height: 40px; /* Minimum height of thumb */ + } + + .dark ::-webkit-scrollbar-thumb { + background-color: var(--dark-grey-45); + } + + ::-webkit-scrollbar-thumb:hover { + background-color: var(--grey-60); + border: 2px solid transparent; /* Slightly less padding on hover */ + } + + .dark ::-webkit-scrollbar-thumb:hover { + background-color: var(--dark-grey-60); + } + + /* Ensure the thumb is more prominent when active */ + ::-webkit-scrollbar-thumb:active { + background-color: var(--grey-50); + border: 2px solid transparent; + } + + .dark ::-webkit-scrollbar-thumb:active { + background-color: var(--dark-grey-60); + } + + ::-webkit-scrollbar-track { + background: transparent; + border-radius: 4px; + } + + ::-webkit-scrollbar-thumb { + background: var(--grey-80); + border-radius: 4px; + } + + .dark ::-webkit-scrollbar-thumb { + background: var(--dark-grey-45); + } + + ::-webkit-scrollbar-thumb:hover { + background: var(--grey-60); + } + + .dark ::-webkit-scrollbar-thumb:hover { + background: var(--dark-grey-60); + } } }