Browse Source

A bit less sensitive to underlying DOM structure.

Ian Rose 5 years ago
parent
commit
99d0e119ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/application-extension/src/index.tsx

+ 1 - 1
packages/application-extension/src/index.tsx

@@ -538,7 +538,7 @@ function addCommands(app: JupyterLab, palette: ICommandPalette): void {
   // specific selector since we really only want tabs that are
   // in the main area, as opposed to those in sidebars, ipywidgets, etc.
   const tabSelector =
-    '#jp-main-dock-panel > .p-TabBar > .p-TabBar-content > .p-TabBar-tab';
+    '#jp-main-dock-panel .p-DockPanel-tabBar.jp-Activity .p-TabBar-tab';
 
   commands.addCommand(CommandIDs.close, {
     label: () => 'Close Tab',