diff options
Diffstat (limited to 'src/main/MainToolbar.jsx')
-rw-r--r-- | src/main/MainToolbar.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/MainToolbar.jsx b/src/main/MainToolbar.jsx index b029529c..c3405ff4 100644 --- a/src/main/MainToolbar.jsx +++ b/src/main/MainToolbar.jsx @@ -90,8 +90,10 @@ const MainToolbar = ({ horizontal: Number(theme.spacing(2).slice(0, -2)), }} marginThreshold={0} - PaperProps={{ - style: { width: `calc(${toolbarRef.current?.clientWidth}px - ${theme.spacing(4)})` }, + slotProps={{ + paper: { + style: { width: `calc(${toolbarRef.current?.clientWidth}px - ${theme.spacing(4)})` }, + } }} elevation={1} disableAutoFocus |