diff --git a/src/main/Body.tsx b/src/main/Body.tsx index ff52ffc74..3d69bfe5e 100644 --- a/src/main/Body.tsx +++ b/src/main/Body.tsx @@ -6,6 +6,8 @@ import TheEnd from './TheEnd'; import Error from './Error'; import Landing from "./Landing"; +import { css } from '@emotion/react' + import { useSelector } from 'react-redux'; import { selectIsEnd } from '../redux/endSlice' import { selectIsError } from "../redux/errorSlice"; @@ -42,11 +44,11 @@ const Body: React.FC<{}> = () => { } } - const bodyStyle = { + const bodyStyle = css({ display: 'flex', - flexDirection: 'row' as const, + flexDirection: 'row', height: '100%', - }; + }); return ( diff --git a/src/main/MainContent.tsx b/src/main/MainContent.tsx index 72b166f33..fe8d81d3c 100644 --- a/src/main/MainContent.tsx +++ b/src/main/MainContent.tsx @@ -49,89 +49,57 @@ const MainContent: React.FC<{}> = () => { } }); - const cuttingStyle = css({ + const mainContentStyle = css({ display: 'flex', - flexDirection: 'column' as const, - justifyContent: 'space-around', - ...(flexGapReplacementStyle(20, false)), + width: '100%', paddingRight: '20px', - paddingLeft: '161px', + paddingLeft: '20px', + ...(flexGapReplacementStyle(20, false)), background: `${theme.background}`, + overflow: 'vertical', + }) + + const cuttingStyle = css({ + flexDirection: 'column', }) const metadataStyle = css({ - display: 'flex', - // flexDirection: 'column' as const, - // justifyContent: 'space-around', - ...(flexGapReplacementStyle(20, false)), - paddingRight: '20px', - paddingLeft: '161px', - background: `${theme.background}`, }) const trackSelectStyle = css({ - display: 'flex', - flexDirection: 'column' as const, + flexDirection: 'column', alignContent: 'space-around', - ...(flexGapReplacementStyle(20, false)), - paddingRight: '20px', - paddingLeft: '161px', - background: `${theme.background}`, }) const subtitleSelectStyle = css({ - display: 'flex', - flexDirection: 'column' as const, + flexDirection: 'column', justifyContent: 'space-around', - paddingRight: '20px', - paddingLeft: '161px', - height: '100%', - background: `${theme.background}`, }) const thumbnailSelectStyle = css({ - display: 'flex', - flexDirection: 'column' as const, + flexDirection: 'column', alignContent: 'space-around', - ...(flexGapReplacementStyle(20, false)), - paddingRight: '20px', - paddingLeft: '161px', - background: `${theme.background}`, }) const finishStyle = css({ - display: 'flex', - flexDirection: 'column' as const, + flexDirection: 'column', justifyContent: 'space-around', - ...(flexGapReplacementStyle(20, false)), - paddingRight: '20px', - paddingLeft: '161px', - minHeight: '100vh', - background: `${theme.background}`, }) const keyboardControlsStyle = css({ - display: 'flex', - flexDirection: 'column' as const, - // justifyContent: 'space-around', - ...(flexGapReplacementStyle(20, false)), - paddingRight: '20px', - paddingLeft: '161px', - background: `${theme.background}`, + flexDirection: 'column', }) const defaultStyle = css({ - display: 'flex', - flexDirection: 'column' as const, + flexDirection: 'column', alignItems: 'center', padding: '20px', - ...(flexGapReplacementStyle(20, false)), }) const render = () => { if (mainMenuState === MainMenuStateNames.cutting) { return ( -
+