Calculate proper appbar width

The appbar width for the title and actions never considered the navbar width and thus, the actions were cut off on smaller screens
This commit is contained in:
schroda
2024-08-28 22:50:58 +02:00
parent 1699a942dc
commit 74d777a52b

View File

@@ -146,7 +146,7 @@ export function DefaultNavBar() {
<Stack
sx={{
ml: `${isCollapsed ? navBarWidth : 0}px`,
width: '100%',
width: `calc(100% - ${isCollapsed ? navBarWidth : 0}px)`,
flexDirection: 'row',
alignItems: 'center',
}}