Skip to content

Commit 45e4c83

Browse files
committed
[toc2] show appropriate icons for resize handles
1 parent c960b97 commit 45e4c83

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/jupyter_contrib_nbextensions/nbextensions/toc2/main.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ padding-left: 20px;
105105
border-color: #eeeeee; /* default - alterable via nbextension-configurator */
106106
}
107107

108+
.sidebar-wrapper .ui-resizable-se {
109+
display: none;
110+
}
111+
112+
.sidebar-wrapper .ui-resizable-e {
113+
position: absolute;
114+
top: calc(50% - 8px);
115+
}
116+
108117
#toc-wrapper.closed {
109118
min-width: 100px;
110119
width: auto;

src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@
292292
});
293293

294294
toc_wrapper.resizable({
295+
handles: 'all',
295296
resize: function(event, ui) {
296297
if (cfg.sideBar) {
297298
setNotebookWidth(cfg, st)

0 commit comments

Comments
 (0)