Skip to content

Commit f865682

Browse files
authored
fix: Cannot scroll left and right by selecting the text (#648)
1 parent 33051f3 commit f865682

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/formatter-settings/assets/style.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,15 @@ code.hljs {
189189
color: var(--vscode-editor-foreground);
190190
font-size: medium;
191191
tab-size: var(--vscode-tab-size);
192-
overflow: hidden !important;
193-
&:hover {
194-
overflow: overlay !important;
195-
}
192+
overflow: overlay !important;
193+
}
194+
195+
.hljs::-webkit-scrollbar {
196+
display: none;
197+
}
198+
199+
.hljs:hover::-webkit-scrollbar {
200+
display: block;
196201
}
197202

198203
.view-body {

0 commit comments

Comments
 (0)