Skip to content

Commit 1ff56e3

Browse files
authored
fix: hide scrollbar (#126)
1 parent c2dd3bf commit 1ff56e3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/modals/ArticleModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ export function ArticleModal({ title, content, ...props }: Props) {
1414
return (
1515
<BaseModal title={title} width={572} {...props}>
1616
<Box
17+
className="hide-scrollbar"
1718
color="neutrals.2"
1819
fontSize="12px"
1920
maxH={600}
2021
overflow="auto"
21-
style={{ scrollbarWidth: 'none' }}
2222
fontWeight={700}
2323
lineHeight="20px"
2424
sx={markdownBaseStyle}

src/styles/index.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,10 @@ h6[id]:before {
148148
text-decoration: underline;
149149
}
150150
}
151+
152+
.hide-scrollbar {
153+
scrollbar-width: none;
154+
}
155+
.hide-scrollbar::-webkit-scrollbar {
156+
display: none;
157+
}

0 commit comments

Comments
 (0)