Commit e32d58d9 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #738 from ethereum/fixScrollFileExplorer

Fix scroll on file explorer
parents 7e2dd427 4568c364
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
border-bottom: 3px solid hsla(229, 100%, 97%, 1); /* backgroundBlue in style-guide.js*/ border-bottom: 3px solid hsla(229, 100%, 97%, 1); /* backgroundBlue in style-guide.js*/
height: 2em; height: 2em;
font-size: 1em; font-size: 1em;
padding-top: 0.5em; margin-top: 0.5em;
box-sizing: content-box; box-sizing: content-box;
display: flex; display: flex;
} }
......
...@@ -16,6 +16,8 @@ var css = csjs` ...@@ -16,6 +16,8 @@ var css = csjs`
.tabsbar { .tabsbar {
display : flex; display : flex;
overflow : hidden; overflow : hidden;
height : 2em;
margin-top : 0.5em;
} }
.tabs { .tabs {
position : relative; position : relative;
...@@ -34,12 +36,13 @@ var css = csjs` ...@@ -34,12 +36,13 @@ var css = csjs`
height : 2.5em; height : 2.5em;
box-sizing : border-box; box-sizing : border-box;
line-height : 2em; line-height : 2em;
padding : 0.5em 0 0;
top : 0; top : 0;
border-bottom : 0 none; border-bottom : 0 none;
} }
.changeeditorfontsize { .changeeditorfontsize {
margin : 0; margin : 0;
font-size : 9px;
margin-top : 0.5em;
} }
.changeeditorfontsize i { .changeeditorfontsize i {
cursor : pointer; cursor : pointer;
...@@ -77,14 +80,11 @@ var css = csjs` ...@@ -77,14 +80,11 @@ var css = csjs`
z-index : 999; z-index : 999;
text-align : center; text-align : center;
cursor : pointer; cursor : pointer;
padding : 0 0.9em;
vertical-align : middle; vertical-align : middle;
background-color : ${styles.colors.white}; background-color : ${styles.colors.white};
height : 100%; height : 100%;
font-size : 1.3em; font-size : 1.3em;
} color : orange;
.scroller i {
line-height : 3em;
} }
.scrollerright { .scrollerright {
right : 0; right : 0;
...@@ -95,7 +95,6 @@ var css = csjs` ...@@ -95,7 +95,6 @@ var css = csjs`
} }
.toggleRHP { .toggleRHP {
margin-top : 0.5em; margin-top : 0.5em;
padding : 0.6em;
font-weight : bold; font-weight : bold;
color : ${styles.colors.black}; color : ${styles.colors.black};
right : 0; right : 0;
......
...@@ -33,8 +33,9 @@ var css = csjs` ...@@ -33,8 +33,9 @@ var css = csjs`
width : 100%; width : 100%;
} }
.menu { .menu {
display : flex; height : 2em;
flex-direction : row; margin-top : 0.5em;
flex-shrink : 0;
} }
.newFile { .newFile {
padding : 10px; padding : 10px;
...@@ -84,6 +85,9 @@ var css = csjs` ...@@ -84,6 +85,9 @@ var css = csjs`
.treeview { .treeview {
background-color : ${styles.colors.white}; background-color : ${styles.colors.white};
} }
.treeviews {
overflow-y : auto;
}
.dragbar { .dragbar {
position : absolute; position : absolute;
top : 37px; top : 37px;
...@@ -151,9 +155,11 @@ function filepanel (appAPI, filesProvider) { ...@@ -151,9 +155,11 @@ function filepanel (appAPI, filesProvider) {
<i class="websocketconn fa fa-link" title="Connect to Localhost"></i> <i class="websocketconn fa fa-link" title="Connect to Localhost"></i>
</span> </span>
</div> </div>
<div class=${css.treeviews}>
<div class=${css.treeview}>${fileExplorer.init()}</div> <div class=${css.treeview}>${fileExplorer.init()}</div>
<div class="filesystemexplorer ${css.treeview}"></div> <div class="filesystemexplorer ${css.treeview}"></div>
</div> </div>
</div>
${dragbar} ${dragbar}
</div> </div>
` `
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment