From 8ca1fe3f0a4c7d8e6bc616a1a8523fb02ec6ed93 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 19 Mar 2019 17:26:07 +0900 Subject: [PATCH] Resolve #1465 (#4532) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [client] show drive file icon * :art: * exchange icon * fix * fuck crlf * 背景差し戻し * fix selected color * :art: * fix * pointer-events none * fix bug * :v: * Clean up * :v: * Clean up * Fix --- .../views/components/drive-file-thumbnail.vue | 174 ++++++++++++++++++ .../desktop/views/components/drive.file.vue | 32 ++-- .../views/components/drive.file-detail.vue | 14 +- .../mobile/views/components/drive.file.vue | 27 ++- src/client/themes/dark.json5 | 2 + src/client/themes/light.json5 | 4 +- 6 files changed, 209 insertions(+), 44 deletions(-) create mode 100644 src/client/app/common/views/components/drive-file-thumbnail.vue diff --git a/src/client/app/common/views/components/drive-file-thumbnail.vue b/src/client/app/common/views/components/drive-file-thumbnail.vue new file mode 100644 index 0000000000..c924aa434d --- /dev/null +++ b/src/client/app/common/views/components/drive-file-thumbnail.vue @@ -0,0 +1,174 @@ + + + + + diff --git a/src/client/app/desktop/views/components/drive.file.vue b/src/client/app/desktop/views/components/drive.file.vue index b9d202f555..975b1d6b52 100644 --- a/src/client/app/desktop/views/components/drive.file.vue +++ b/src/client/app/desktop/views/components/drive.file.vue @@ -21,9 +21,9 @@

{{ $t('nsfw') }}

-
- -
+ + +

{{ file.name.lastIndexOf('.') != -1 ? file.name.substr(0, file.name.lastIndexOf('.')) : file.name }} {{ file.name.substr(file.name.lastIndexOf('.')) }} @@ -34,15 +34,18 @@