Skip to content

Commit cc9a641

Browse files
authored
Merge pull request #23 from fancyboi999/fix/right-sidebar-scrollbar-track
fix: soften message scrollbars
2 parents 75c2179 + 9340084 commit cc9a641

3 files changed

Lines changed: 33 additions & 2 deletions

File tree

src/app/pages/TaskDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ function TaskDetailContent() {
933933
<div
934934
ref={messagesContainerRef}
935935
className={cn(
936-
'relative flex-1 overflow-x-hidden overflow-y-auto',
936+
'scrollbar-soft relative flex-1 overflow-x-hidden overflow-y-auto',
937937
!isPreviewVisible &&
938938
!isRightSidebarVisible &&
939939
'flex justify-center'

src/components/task/RightSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ export function RightSidebar({
12241224
};
12251225

12261226
return (
1227-
<div className="bg-background flex h-full flex-col overflow-x-hidden overflow-y-auto">
1227+
<div className="scrollbar-blend bg-background flex h-full flex-col overflow-x-hidden overflow-y-auto">
12281228
{/* 1. Workspace Section */}
12291229
<CollapsibleSection
12301230
title={t.task.workspace || 'Workspace'}

src/config/style/global.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,37 @@
3030
scrollbar-width: none; /* Firefox */
3131
}
3232

33+
/* Blend scrollbars into background (transparent track) */
34+
.scrollbar-blend {
35+
scrollbar-color: var(--muted-foreground) transparent; /* Firefox */
36+
}
37+
.scrollbar-blend::-webkit-scrollbar-track {
38+
background: transparent;
39+
}
40+
41+
/* Soft, light scrollbars (transparent track + subtle thumb) */
42+
.scrollbar-soft {
43+
scrollbar-color: rgba(0, 0, 0, 0.25) transparent; /* Firefox */
44+
}
45+
.dark .scrollbar-soft {
46+
scrollbar-color: rgba(255, 255, 255, 0.25) transparent; /* Firefox */
47+
}
48+
.scrollbar-soft::-webkit-scrollbar {
49+
width: 8px;
50+
}
51+
.scrollbar-soft::-webkit-scrollbar-track {
52+
background: transparent;
53+
}
54+
.scrollbar-soft::-webkit-scrollbar-thumb {
55+
background-color: rgba(0, 0, 0, 0.2);
56+
border-radius: 999px;
57+
border: 2px solid transparent;
58+
background-clip: padding-box;
59+
}
60+
.dark .scrollbar-soft::-webkit-scrollbar-thumb {
61+
background-color: rgba(255, 255, 255, 0.2);
62+
}
63+
3364
input,
3465
select,
3566
textarea {

0 commit comments

Comments
 (0)