Fixes with-minimal class removed from pane on tab close