diff --git a/src/components/FileExplorer.js b/src/components/FileExplorer.js index 14f051f..afa2f56 100644 --- a/src/components/FileExplorer.js +++ b/src/components/FileExplorer.js @@ -183,16 +183,18 @@ export default class List extends preact.Component { {nodes.length === 0 ? ( ) : ( - nodes.map(node => ( - - )) +
+ {nodes.map(node => ( + + ))} +
)} ) diff --git a/src/content.less b/src/content.less index a8aa0ee..1083f60 100644 --- a/src/content.less +++ b/src/content.less @@ -158,24 +158,31 @@ padding: 4px 10px; } - /* search input */ - .search-input-wrapper { - input[type='text'].form-control { - box-shadow: none; - width: 100%; - } - } - - .no-results { - padding: 0px 10px; - color: #666; - } - .file-explorer { width: 100%; height: 100%; - overflow: auto; outline: none; + display: flex; + flex-direction: column; + flex-wrap: nowrap; + + /* search input */ + .search-input-wrapper { + input[type='text'].form-control { + box-shadow: none; + width: 100%; + } + } + + .no-results { + padding: 0px 10px; + color: #666; + } + + .files { + flex: 1; + overflow: auto; + } .node-item-row { background: #fff;