Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/src/components/chat-ui/Conversation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const ConversationContent = ({
}: ComponentProps<typeof StickToBottom.Content>) => (
<StickToBottom.Content
className={cn("flex min-w-0 flex-col gap-4 p-4", className)}
scrollClassName="min-w-0"
scrollClassName="min-w-0 chat-scroll"
{...props}
/>
);
Expand Down
37 changes: 26 additions & 11 deletions web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,36 +226,51 @@
display: none;
}

/* ── Slim, unobtrusive scrollbar for the project sidebar ── */
/* ── Slim, unobtrusive scrollbars (sidebar + chat transcript) ── */
[data-slot="sidebar-content"] {
--scrollbar-tint: var(--sidebar-foreground);
}
.chat-scroll {
--scrollbar-tint: var(--foreground);
}
[data-slot="sidebar-content"],
.chat-scroll {
scrollbar-width: thin;
scrollbar-color: transparent transparent;
transition: scrollbar-color 0.2s ease;
}
[data-slot="sidebar-content"]:hover,
[data-slot="sidebar-content"]:focus-within {
scrollbar-color: color-mix(in srgb, var(--sidebar-foreground) 22%, transparent)
[data-slot="sidebar-content"]:focus-within,
.chat-scroll:hover,
.chat-scroll:focus-within {
scrollbar-color: color-mix(in srgb, var(--scrollbar-tint) 22%, transparent)
transparent;
}
[data-slot="sidebar-content"]::-webkit-scrollbar {
[data-slot="sidebar-content"]::-webkit-scrollbar,
.chat-scroll::-webkit-scrollbar {
width: 10px;
}
[data-slot="sidebar-content"]::-webkit-scrollbar-track {
[data-slot="sidebar-content"]::-webkit-scrollbar-track,
.chat-scroll::-webkit-scrollbar-track {
background: transparent;
}
[data-slot="sidebar-content"]::-webkit-scrollbar-thumb {
[data-slot="sidebar-content"]::-webkit-scrollbar-thumb,
.chat-scroll::-webkit-scrollbar-thumb {
background-color: transparent;
border: 3px solid transparent;
border-radius: 9999px;
background-clip: padding-box;
transition: background-color 0.2s ease;
}
[data-slot="sidebar-content"]:hover::-webkit-scrollbar-thumb,
[data-slot="sidebar-content"]:focus-within::-webkit-scrollbar-thumb {
background-color: color-mix(in srgb, var(--sidebar-foreground) 22%, transparent);
}
[data-slot="sidebar-content"]::-webkit-scrollbar-thumb:hover {
background-color: color-mix(in srgb, var(--sidebar-foreground) 38%, transparent);
[data-slot="sidebar-content"]:focus-within::-webkit-scrollbar-thumb,
.chat-scroll:hover::-webkit-scrollbar-thumb,
.chat-scroll:focus-within::-webkit-scrollbar-thumb {
background-color: color-mix(in srgb, var(--scrollbar-tint) 22%, transparent);
}
[data-slot="sidebar-content"]::-webkit-scrollbar-thumb:hover,
.chat-scroll::-webkit-scrollbar-thumb:hover {
background-color: color-mix(in srgb, var(--scrollbar-tint) 38%, transparent);
}

.scroll-shadow {
Expand Down
Loading