Skip to content

Commit 6c742aa

Browse files
committed
Customize scroll
1 parent 647635d commit 6c742aa

File tree

1 file changed

+4
-2
lines changed
  • site/src/modules/workspaces/WorkspaceTiming/Chart

1 file changed

+4
-2
lines changed

site/src/modules/workspaces/WorkspaceTiming/Chart/Chart.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,16 @@ const styles = {
104104
display: "flex",
105105
flexDirection: "column",
106106
},
107-
content: {
107+
content: (theme) => ({
108108
display: "flex",
109109
alignItems: "stretch",
110110
fontSize: 12,
111111
fontWeight: 500,
112112
overflow: "auto",
113113
flex: 1,
114-
},
114+
scrollbarColor: `${theme.palette.divider} ${theme.palette.background.default}`,
115+
scrollbarWidth: "thin",
116+
}),
115117
toolbar: (theme) => ({
116118
borderBottom: `1px solid ${theme.palette.divider}`,
117119
fontSize: 12,

0 commit comments

Comments
 (0)