💄 Site > File tree > Improve scroll

This commit is contained in:
brunosimon
2017-09-09 01:30:46 +02:00
parent 6c8d44015c
commit 13c868ffa3
3 changed files with 13 additions and 6 deletions
+9 -1
View File
@@ -3,10 +3,11 @@
top 120px top 120px
bottom 0px bottom 0px
left 0 left 0
overflow-y scroll width 290px
background #26283B background #26283B
color #ffffff color #ffffff
user-select none user-select none
overflow hidden
.search .search
display block display block
@@ -18,6 +19,13 @@
line-height 40px line-height 40px
border-bottom 1px solid rgba(255, 255, 255, 0.2) border-bottom 1px solid rgba(255, 255, 255, 0.2)
.inner
position absolute
top 40px
bottom 0
left 0
overflow-y scroll
.content .content
padding-bottom 60px padding-bottom 60px
line-height 28px line-height 28px
+4 -2
View File
@@ -1,5 +1,7 @@
<div class="file-tree" :style="`right: calc(100vw - 290px - ${scrollbarWidth}px);`"> <div class="file-tree">
<input class="search" type="text" v-model="searchValue" placeholder="Search for files ..."> <input class="search" type="text" v-model="searchValue" placeholder="Search for files ...">
<files-tree-folder class="content" v-for="folder of files.folders" :key="+ new Date()" :content="folder" :depth="0"></files-tree-folder> <div class="inner" :style="`right: -${scrollbarWidth}px;`">
<files-tree-folder class="content" v-for="folder of files.folders" :key="+ new Date()" :content="folder" :depth="0"></files-tree-folder>
</div>
<a href="#" class="all-read" @click.prevent="onAllReadClick">Mark all as read</a> <a href="#" class="all-read" @click.prevent="onAllReadClick">Mark all as read</a>
</div> </div>
@@ -1,7 +1,4 @@
<div> <div>
{{ project.name }}
<a :href="downloadUrl" download>Download</a>
<files-tree></files-tree> <files-tree></files-tree>
<file v-if="file" :content="file"></file> <file v-if="file" :content="file"></file>
<landing v-if="!file"></landing> <landing v-if="!file"></landing>