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:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user