Impossible to minimize Plotly dataframe if in sidebar


I’ve added a Plotly dataframe in the sidebar of my app. When I’m clicking the maximizing button, i’m unable to minimize it after that because the minimize button overlaps with the menu button : as a result, when I try to minimise my df, it acts as if I’m clicking on the menu button.

This thing only happens with Plotly object in the sidebar, I don’t have this issue when Plotly object is not in the sidebar.

I’ve tried to move the menu button using an example from this topic (How do i hide/ remove the menu in production? - #9 by Mani) but it doesn’t solve the problem (the click on the minise button still acts as if i clicked on the menu button even though I move the menu button)

Any ideas how I can solve this problem ?