Skip to content

The Open Standard for Generative UI

Fix scrollbar theme (#520)

Subham Das036cf203abd1
diff --git a/packages/react-ui/src/components/BottomTray/thread.scss b/packages/react-ui/src/components/BottomTray/thread.scss
index cc0ce23f4..bf55597f1 100644
--- a/packages/react-ui/src/components/BottomTray/thread.scss
+++ b/packages/react-ui/src/components/BottomTray/thread.scss
@@ -58,6 +58,25 @@
overflow: auto;
padding: cssUtils.$space-m;
scroll-padding-top: calc(cssUtils.$space-m + cssUtils.$space-xs);
+ scrollbar-width: thin;
+ scrollbar-color: cssUtils.$highlight-strong transparent;
+
+ &::-webkit-scrollbar {
+ width: cssUtils.$space-xs;
+ }
+
+ &::-webkit-scrollbar-track {
+ background: transparent;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ background-color: cssUtils.$highlight-strong;
+ border-radius: cssUtils.$radius-full;
+
+ &:hover {
+ background-color: cssUtils.$highlight-intense;
+ }
+ }
&--user-message-anchor {
& .openui-bottom-tray-thread-messages > *:last-child {
diff --git a/packages/react-ui/src/components/CopilotShell/thread.scss b/packages/react-ui/src/components/CopilotShell/thread.scss
index 889a52520..9f3b3bd82 100644
--- a/packages/react-ui/src/components/CopilotShell/thread.scss
+++ b/packages/react-ui/src/components/CopilotShell/thread.scss
@@ -58,6 +58,25 @@
overflow: auto;
padding: cssUtils.$space-m-l;
scroll-padding-top: cssUtils.$space-m-l;
+ scrollbar-width: thin;
+ scrollbar-color: cssUtils.$highlight-strong transparent;
+
+ &::-webkit-scrollbar {
+ width: cssUtils.$space-xs;
+ }
+
+ &::-webkit-scrollbar-track {
+ background: transparent;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ background-color: cssUtils.$highlight-strong;
+ border-radius: cssUtils.$radius-full;
+
+ &:hover {
+ background-color: cssUtils.$highlight-intense;
+ }
+ }
&--user-message-anchor {
& .openui-copilot-shell-thread-messages > *:last-child {
diff --git a/packages/react-ui/src/components/CopilotShell/threadList.scss b/packages/react-ui/src/components/CopilotShell/threadList.scss
index 2cdef6408..ce6175c17 100644
--- a/packages/react-ui/src/components/CopilotShell/threadList.scss
+++ b/packages/react-ui/src/components/CopilotShell/threadList.scss
@@ -27,6 +27,25 @@
flex-direction: column;
gap: cssUtils.$space-3xs;
overflow-y: auto;
+ scrollbar-width: thin;
+ scrollbar-color: cssUtils.$border-default transparent;
+
+ &::-webkit-scrollbar {
+ width: cssUtils.$space-xs;
+ }
+
+ &::-webkit-scrollbar-track {
+ background: transparent;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ background: cssUtils.$border-default;
+ border-radius: calc(cssUtils.$radius-2xs + cssUtils.$space-3xs);
+ }
+
+ &::-webkit-scrollbar-thumb:hover {
+ background: cssUtils.$text-neutral-secondary;
+ }
}
.openui-copilot-shell-thread-list-empty {
diff --git a/packages/react-ui/src/components/Shell/thread.scss b/packages/react-ui/src/components/Shell/thread.scss
index 4b27c947c..c3d7fd7f1 100644
--- a/packages/react-ui/src/components/Shell/thread.scss
+++ b/packages/react-ui/src/components/Shell/thread.scss
@@ -69,7 +69,7 @@
scrollbar-color: cssUtils.$highlight-strong transparent;
&::-webkit-scrollbar {
- width: 6px;
+ width: cssUtils.$space-xs;
}
&::-webkit-scrollbar-track {
@@ -154,12 +154,31 @@ $center-align-spacing: calc(32px + cssUtils.$space-s);
overflow: auto;
padding: cssUtils.$space-m $center-align-spacing cssUtils.$space-xl;
scroll-padding-top: cssUtils.$space-2xl;
+ scrollbar-width: thin;
+ scrollbar-color: cssUtils.$border-default transparent;
+
+ &::-webkit-scrollbar {
+ width: cssUtils.$space-xs;
+ }
+
+ &::-webkit-scrollbar-track {
+ background: transparent;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ background: cssUtils.$border-default;
+ border-radius: calc(cssUtils.$radius-2xs + cssUtils.$space-3xs);
+ }
+
+ &::-webkit-scrollbar-thumb:hover {
+ background: cssUtils.$text-neutral-secondary;
+ }
scrollbar-width: thin;
scrollbar-color: cssUtils.$highlight-strong transparent;
&::-webkit-scrollbar {
- width: 6px;
+ width: cssUtils.$space-xs;
}
&::-webkit-scrollbar-track {
diff --git a/packages/react-ui/src/components/Shell/threadlist.scss b/packages/react-ui/src/components/Shell/threadlist.scss
index adc6a2444..e90d91ee0 100644
--- a/packages/react-ui/src/components/Shell/threadlist.scss
+++ b/packages/react-ui/src/components/Shell/threadlist.scss
@@ -6,6 +6,25 @@
gap: cssUtils.$space-3xs;
overflow: auto;
margin-top: cssUtils.$space-m;
+ scrollbar-width: thin;
+ scrollbar-color: cssUtils.$border-default transparent;
+
+ &::-webkit-scrollbar {
+ width: cssUtils.$space-xs;
+ }
+
+ &::-webkit-scrollbar-track {
+ background: transparent;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ background: cssUtils.$border-default;
+ border-radius: calc(cssUtils.$radius-2xs + cssUtils.$space-3xs);
+ }
+
+ &::-webkit-scrollbar-thumb:hover {
+ background: cssUtils.$text-neutral-secondary;
+ }
}
.openui-shell-thread-list-group {