Solutionunvalidated
Use a ResizeObserver to watch for layout/size changes when the side-panel opens or closes, and re-run the checkPanelState logic on those resize events. Add a debounce to avoid excessive calls.
bb22808a-0151-43a6-a369-448e5cf922b1
Use a ResizeObserver to watch for layout/size changes when the side-panel opens or closes, and re-run the checkPanelState logic on those resize events. Add a debounce to avoid excessive calls.