Skip to content

Commit 7a5086e

Browse files
authored
Merge pull request #37 from raduwen/fix/scrollable-admin
fix: 編集画面でスクロールできるようにした
2 parents ce99484 + ca9c7f8 commit 7a5086e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/components/admin/index.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ const Editors = {
2424

2525
const useStyles = makeStyles((theme) => ({
2626
root: {
27-
flexGrow: 1,
27+
display: 'flex',
28+
flexDirection: 'column',
29+
width: '100%',
30+
height: '100vh',
31+
overflow: 'hidden',
32+
},
33+
content: {
34+
flex: 1,
35+
overflow: 'auto',
2836
},
2937
title: {
3038
flexGrow: 1,
@@ -87,7 +95,7 @@ const Index: VFC = () => {
8795
</Toolbar>
8896
</AppBar>
8997

90-
<Container>
98+
<Container className={classes.content}>
9199
<Box my={4}>
92100
<Widgets />
93101
</Box>

0 commit comments

Comments
 (0)