Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite385e74

Browse files
author
minjk-bl
committed
Edit FileNavigation
1 parentb44bfff commite385e74

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

‎css/component/fileNavigation.css‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
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 {
@@ -119,7 +123,7 @@
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
display: flex;

‎html/component/fileNavigation.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
>
2424
<divclass='fileNavigationPage-menu'>
2525

26-
<divclass="btn-group"id="move_up_down"
26+
<!-- <div
2727
style='width: 90px;
2828
display: flex;
2929
flex-direction: column;
@@ -32,11 +32,11 @@
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
<divclass='fileNavigationPage-menu-inner'
3838
style='font-weight: normal;'>
39-
<iclass="item_icon
39+
<iid="fnpRootFolder"class="item_icon
4040
folder_icon
4141
icon-fixed-width"
4242
style='margin:0px;'>

‎js/com/component/FileNavigation.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ define([
100100
that.close();
101101
});
102102

103+
// Click root
104+
$(this.wrapSelector('#fnpRootFolder')).on('click',function(){
105+
vardirObj={
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');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp