Consider y-scrollbar when setting max-width

In case there was a y-scrollbar, the set max width caused the x-scrollbar to also appear
This commit is contained in:
schroda
2024-07-13 13:01:33 +02:00
parent fe8d87a536
commit 5632c4584b

View File

@@ -88,7 +88,7 @@ const MainApp = () => {
sx={{
flexGrow: 1,
minHeight: `calc(100vh - ${bottomBarHeight}px)`,
maxWidth: `calc(100vw - ${navBarWidth}px)`,
maxWidth: `calc(100vw - (100vw - 100%) - ${navBarWidth}px)`,
position: 'relative',
mb: `${bottomBarHeight}px`,
}}