Skip to content

Commit 16d4e2f

Browse files
committed
fix: allow scrolling in settings
fix #80
1 parent f68b45a commit 16d4e2f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/components/Content/Content.module.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
height: calc(100vh - var(--header-height));
44
overflow: hidden;
55
}
6+
.scroll {
7+
overflow-y: scroll;
8+
}
69
.padding {
710
padding: 0 2rem;
811
}

src/components/Content/Content.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ type Props = {
88
children: ReactNode;
99
padding?: boolean;
1010
flex?: boolean;
11+
scroll?: boolean;
1112
background?: boolean;
1213
};
1314
export default function Content({
@@ -17,6 +18,7 @@ export default function Content({
1718
background,
1819
className,
1920
flex,
21+
scroll,
2022
}: Props) {
2123
return (
2224
<>
@@ -27,6 +29,7 @@ export default function Content({
2729
styles.content,
2830
padding && styles.padding,
2931
flex && styles.flex,
32+
scroll && styles.scroll,
3033
background && styles.background,
3134
)}
3235
>

src/views/Settings/Settings.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default function Settings(props: Props) {
2424
<Content
2525
padding
2626
background
27+
scroll
2728
header={
2829
<Header>
2930
<Button title="close" disabled={!valid} onClick={props.onClose}>

0 commit comments

Comments
 (0)