Skip to content

Commit

Permalink
[FIX] tooltip for long filename
Browse files Browse the repository at this point in the history
  • Loading branch information
codysk committed Apr 22, 2019
1 parent 69a4003 commit 0aedb31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/FileBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export default {
}
.tiles-group::before{
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
width: 100%;
}
@media (max-width: 768px) {
.tiles-area {
Expand Down
3 changes: 3 additions & 0 deletions src/views/components/Tile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<router-link
v-if="file.type == 'file-directory'"
class="tile-medium"
:title="file.name"
:to="$route.path + file.filename"
>
<img
Expand All @@ -19,6 +20,7 @@
<router-link
v-else-if="file.type == 'file-video'"
class="tile-medium"
:title="file.name"
:to="'/.player' + $route.path + file.filename"
>
<img
Expand All @@ -36,6 +38,7 @@
<a
v-else-if="file.type == 'file-zip' || file.type == 'file-image' || file.type == 'file'"
class="tile-medium"
:title="file.name"
:href="$route.path + file.filename"
>
<img
Expand Down

0 comments on commit 0aedb31

Please sign in to comment.