File tree 2 files changed +8
-3
lines changed
src/components/ui/code-highlighter/shiki
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 89
89
}
90
90
}
91
91
92
- .scroll-container ::-webkit-scrollbar-track {
93
- margin : 10px ; /* 滚动条顶部间距 */
92
+ .scroll-container pre ::-webkit-scrollbar-track {
93
+ margin-left : 3rem ;
94
+ margin-right : 8rem ;
95
+ }
96
+
97
+ .scroll-container pre ::-webkit-scrollbar {
98
+ background-color : transparent !important ;
94
99
}
95
100
}
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ export const ShikiHighLighter: FC<Props> = (props) => {
152
152
< div
153
153
ref = { setCodeBlockRef }
154
154
className = { clsxm (
155
- 'relative max-h-[50vh] w-full overflow-auto scrollbar-none ' ,
155
+ 'relative max-h-[50vh] w-full overflow-auto' ,
156
156
! isCollapsed ? '!max-h-[100%]' : isOverflow ? maskClassName : '' ,
157
157
styles [ 'scroll-container' ] ,
158
158
) }
You can’t perform that action at this time.
0 commit comments