Fix ui glitch

This commit is contained in:
Thomas Nordquist
2019-04-30 17:44:25 +02:00
parent 365ebc78ab
commit 931ec0113c

View File

@@ -89,6 +89,12 @@ class App extends React.PureComponent<Props, {}> {
const styles = (theme: Theme) => { const styles = (theme: Theme) => {
const drawerWidth = 300 const drawerWidth = 300
const contentBaseStyle = {
width: '100vw',
overflow: 'hidden' as 'hidden',
backgroundColor: theme.palette.background.default,
}
return { return {
heightProperty: { heightProperty: {
height: 'calc(100vh - 64px) !important', height: 'calc(100vh - 64px) !important',
@@ -106,9 +112,7 @@ const styles = (theme: Theme) => {
overflow: 'hidden' as 'hidden', overflow: 'hidden' as 'hidden',
}, },
content: { content: {
width: '100vw', ...contentBaseStyle,
overflowX: 'hidden' as 'hidden',
backgroundColor: theme.palette.background.default,
transition: theme.transitions.create('transform', { transition: theme.transitions.create('transform', {
easing: theme.transitions.easing.sharp, easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.leavingScreen, duration: theme.transitions.duration.leavingScreen,
@@ -116,9 +120,7 @@ const styles = (theme: Theme) => {
transform: 'translateX(0px)', transform: 'translateX(0px)',
}, },
contentShift: { contentShift: {
overflowX: 'hidden' as 'hidden', ...contentBaseStyle,
width: '100vw',
padding: 0,
backgroundColor: theme.palette.background.default, backgroundColor: theme.palette.background.default,
transition: theme.transitions.create('transform', { transition: theme.transitions.create('transform', {
easing: theme.transitions.easing.easeOut, easing: theme.transitions.easing.easeOut,