File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 height : 55% ;
2222 background-color : white;
2323}
24+ # fnpRootFolder : hover {
25+ color : var (--font-highlight );
26+ cursor : pointer;
27+ }
2428
2529/* Sidebar Menu */
2630.fileNavigationPage-sidebar {
119123.fileNavigationPage-menu {
120124 min-height : 35px ;
121125 height : fit-content;
122- padding-left : 10px ;
126+ /* padding-left: 10px; */
123127 background-color : # EEE ;
124128 border : 1px solid # ddd ;;
125129 dis play: flex;
Original file line number Diff line number Diff line change 2323>
2424 < div class ='fileNavigationPage-menu '>
2525
26- < div class ="btn-group " id ="move_up_down "
26+ <!-- < div class="btn-group" id="move_up_down"
2727 style='width: 90px;
2828 display: flex;
2929 flex-direction: column;
3232 <img class="fileNavigationPage-btn-prev" src="/nbextensions/visualpython/img/arrow_backward.svg">
3333 <img class="fileNavigationPage-btn-next" src="/nbextensions/visualpython/img/arrow_forward.svg">
3434 </div>
35- </ div >
35+ </div> -->
3636
3737 < div class ='fileNavigationPage-menu-inner '
3838 style ='font-weight: normal; '>
39- < i class ="item_icon
39+ < i id =" fnpRootFolder " class ="item_icon
4040 folder_icon
4141 icon-fixed-width "
4242 style ='margin:0px; '>
Original file line number Diff line number Diff line change @@ -100,6 +100,15 @@ define([
100100 that . close ( ) ;
101101 } ) ;
102102
103+ // Click root
104+ $ ( this . wrapSelector ( '#fnpRootFolder' ) ) . on ( 'click' , function ( ) {
105+ var dirObj = {
106+ direction : NAVIGATION_DIRECTION_TYPE . TOP ,
107+ destDir : '/'
108+ } ;
109+ that . getFileList ( dirObj ) ;
110+ } ) ;
111+
103112 // Click sidebar
104113 $ ( this . wrapSelector ( '.fnp-sidebar-menu' ) ) . click ( function ( event ) {
105114 $ ( '.fnp-sidebar-menu' ) . removeClass ( 'selected' ) ;
You can’t perform that action at this time.
0 commit comments