Skip to content

Commit fb5d503

Browse files
authored
Merge pull request #6477 from brichet/fix/closable_tab
Change the tab renderer to allow adding closable tab
2 parents 22fedf4 + bd786ad commit fb5d503

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/tree-extension/src/index.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import { ITranslator } from '@jupyterlab/translation';
2727
import {
2828
caretDownIcon,
2929
folderIcon,
30-
runningIcon
30+
runningIcon,
31+
TabBarSvg
3132
} from '@jupyterlab/ui-components';
3233

3334
import { Menu, MenuBar, TabPanel } from '@lumino/widgets';
@@ -113,7 +114,11 @@ const browserWidget: JupyterFrontEndPlugin<void> = {
113114
toolbarRegistry: IToolbarWidgetRegistry,
114115
manager: IRunningSessionManagers | null
115116
): void => {
116-
const tabPanel = new TabPanel({ tabPlacement: 'top', tabsMovable: true });
117+
const tabPanel = new TabPanel({
118+
tabPlacement: 'top',
119+
tabsMovable: true,
120+
renderer: TabBarSvg.defaultRenderer
121+
});
117122
tabPanel.addClass('jp-TreePanel');
118123

119124
const trans = translator.load('notebook');

0 commit comments

Comments
 (0)