Prevent grid items from jumping after closing reader

Due to the reader and the "default" nav bar updating the same navbar width in the context, the grid item width calculation resulted in different grid item widths, which caused the items to "jump" after closing the reader
This commit is contained in:
schroda
2024-07-29 17:22:49 +02:00
parent b17fcd30af
commit b80622cb17
11 changed files with 54 additions and 39 deletions

View File

@@ -86,8 +86,9 @@ const MainApp = () => {
id="appMainContainer"
component="main"
sx={{
flexGrow: 1,
minHeight: `calc(100vh - ${bottomBarHeight}px)`,
width: `calc(100vw - (100vw - 100%) - ${navBarWidth}px)`,
minWidth: `calc(100vw - (100vw - 100%) - ${navBarWidth}px)`,
maxWidth: `calc(100vw - (100vw - 100%) - ${navBarWidth}px)`,
position: 'relative',
mb: `${bottomBarHeight}px`,