Skip to content

Commit

Permalink
Fix main layout scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbe-j committed Nov 11, 2023
1 parent f8a9bb7 commit cdfbd3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 5 additions & 1 deletion dance-app/src/components/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ interface DrawerProps {

const useStyles = makeStyles(() => ({
box: {
position: "absolute",
top: 0,
left: 0,
display: "flex",
height: "100vh",
width: "100vw",
alignItems: "center",
// justifyContent: "center",
flexDirection: "column",
zIndex: "9",
},
buttons: {
backgroundColor: "white",
margin: "0.3rem",
},
drawerItems: {
marginTop: 10,
flexBasis: "100%",
display: "flex",
justifyContent: "space-between",
Expand Down
8 changes: 1 addition & 7 deletions dance-app/src/layouts/MainDrawerLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@ type MainDrawerLayoutProps = {

const useStyles = makeStyles(() => ({
root: {
position: "relative",
display: "flex",
height: "100vh",
width: "100vw",
alignItems: "center",
marginTop: "0.5rem",
// justifyContent: "center",
flexDirection: "column",
},
header: {
display: "flex",
flexDirection: "row",
alignItems: "start",
height: "12vh", // 10% of the screen height
},
}));

const MainDrawerLayout = ({ children }: MainDrawerLayoutProps) => {
Expand Down
1 change: 1 addition & 0 deletions dance-app/src/sections/recording.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { makeStyles } from "@mui/styles";

const useStyles = makeStyles(() => ({
backButton: {
marginTop: "10px!important",
zIndex: "10",
},
}));
Expand Down

0 comments on commit cdfbd3a

Please sign in to comment.