profiler
profiler copied to clipboard
The sidebar should start out closed on mobile for all panels, not just the panel that's visible on load
After the fix from #5464, it seems that we only change the sidebar open state for the panel that's initially selected.
Steps to reproduce:
- Open a profile where the call tree tab is selected on load, on a mobile screen size. Example profile, main branch
- Switch to the marker table pane.
Expected results:
The sidebar should also be closed by default in the marker table.
Actual results:
Switching to the marker table tab causes the sidebar to open.
The same happens in reverse: Loading a link to /marker-table and switching to the call tree opens the sidebar.
Or if you load a link to the flame graph tab, switching to either call tree or marker table opens the sidebar.
@Carla-Moz
┆Issue is synchronized with this Jira Task