Skip to content

Commit

Permalink
fix: allow scrolling in settings
Browse files Browse the repository at this point in the history
fix #80
  • Loading branch information
Xiphe committed Mar 8, 2021
1 parent f68b45a commit 16d4e2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Content/Content.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
height: calc(100vh - var(--header-height));
overflow: hidden;
}
.scroll {
overflow-y: scroll;
}
.padding {
padding: 0 2rem;
}
Expand Down
3 changes: 3 additions & 0 deletions src/components/Content/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type Props = {
children: ReactNode;
padding?: boolean;
flex?: boolean;
scroll?: boolean;
background?: boolean;
};
export default function Content({
Expand All @@ -17,6 +18,7 @@ export default function Content({
background,
className,
flex,
scroll,
}: Props) {
return (
<>
Expand All @@ -27,6 +29,7 @@ export default function Content({
styles.content,
padding && styles.padding,
flex && styles.flex,
scroll && styles.scroll,
background && styles.background,
)}
>
Expand Down
1 change: 1 addition & 0 deletions src/views/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function Settings(props: Props) {
<Content
padding
background
scroll
header={
<Header>
<Button title="close" disabled={!valid} onClick={props.onClose}>
Expand Down

0 comments on commit 16d4e2f

Please sign in to comment.