siriwatknp / mui-treasury

A collection of ready-to-use components based on Material-UI
https://mui-treasury.com
MIT License
2.38k stars 151 forks source link

Left sidebar collapse affecting main content element behavior #1192

Closed martinsvb closed 2 months ago

martinsvb commented 2 years ago

I encounter strange issue with collapsed left sidebar. We have MUI content structure like this: Tabs are initialized with empty "New item" tab. We can add other new items by plus button on the right or existing from left menu. Problem is, when sidebar is collapsed first new item tab has simple cursor and it's not clickable for change. There is pointer only on small top and bottom space. If I expand Sidebar_co
![Sidebar_expanded](https://user-images.githubusercontent.com/6408519/177082680-9a3c2da3-7ad1-479d-ae74-670db6ba2042.png)
llapsed Sidebar tab is working normally with cursor pointer. There is only changing class on main element generated by Treasury Content. I don't have idea, what is causing this issue. Maybe it's on our side. I don't know. I can try reproduce it in js fiddle. Thank you for good library!

martinsvb commented 2 years ago

Sidebar_expanded

martinsvb commented 2 years ago

Content structure: <TreasuryContent /><MuiContainer /><RouterOutlet /><MuiBox /><MuiTabs />

siriwatknp commented 2 months ago

Not sure what's the issue. Need a reproducible sandbox.