Skip to content

Commit ecef58b

Browse files
committed
style(web): remove redundant scrollbar styles
1 parent 909be2e commit ecef58b

File tree

1 file changed

+1
-17
lines changed
  • packages/web/src/components/GlobalStyle

1 file changed

+1
-17
lines changed

packages/web/src/components/GlobalStyle/styled.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@ export const GlobalStyle = createGlobalStyle`
2929
width: 8px;
3030
}
3131
32-
/* Hide the scrollbar thumb by default (transparent) */
33-
&::-webkit-scrollbar-thumb {
34-
background-color: transparent;
35-
border-radius: 4px;
36-
transition: background-color 0.3s ease;
37-
}
38-
39-
/* Show scrollbar when hovering anywhere in the palette or when scrolling */
32+
/* Show scrollbar when hovering over the command palette container */
4033
&:hover::-webkit-scrollbar-thumb,
4134
&:focus::-webkit-scrollbar-thumb,
4235
&:active::-webkit-scrollbar-thumb {
@@ -48,13 +41,4 @@ export const GlobalStyle = createGlobalStyle`
4841
background-color: ${theme.color.panel.scrollbarActive};
4942
}
5043
}
51-
52-
/* Also show scrollbar when hovering over the command palette container */
53-
.command-palette:hover .overflow-y-auto::-webkit-scrollbar-thumb {
54-
background-color: ${theme.color.panel.scrollbar};
55-
}
56-
57-
.command-palette:hover .overflow-y-auto::-webkit-scrollbar-thumb:hover {
58-
background-color: ${theme.color.panel.scrollbarActive};
59-
}
6044
`;

0 commit comments

Comments
 (0)