aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-06-22 19:09:16 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-05 16:20:33 +0200
commit28c2d9e9063b05ad6eff9a227764a9571db4fcbe (patch)
tree1c6dafdfe5024792e5bc29983a295c3254fe13a5 /apps/files
parentfb61e3a7613727a71123ceb8c8767b0110d49460 (diff)
downloadnextcloud-server-28c2d9e9063b05ad6eff9a227764a9571db4fcbe.tar.gz
nextcloud-server-28c2d9e9063b05ad6eff9a227764a9571db4fcbe.zip
fix(files): sanitize name and ext display
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/components/FileEntry.vue3
-rw-r--r--apps/files/src/components/FilesListVirtual.vue2
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index 2153377cad8..58b914041b2 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -83,7 +83,8 @@
<!-- File name -->
<span class="files-list__row-name-text">
<!-- Keep the displayName stuck to the extension to avoid whitespace rendering issues-->
- {{ displayName }}<span class="files-list__row-name-ext" v-text="source.extension" />
+ <span class="files-list__row-name-" v-text="displayName" />
+ <span class="files-list__row-name-ext" v-text="source.extension" />
</span>
</a>
</td>
diff --git a/apps/files/src/components/FilesListVirtual.vue b/apps/files/src/components/FilesListVirtual.vue
index ca77f0a8f3e..962b7d56263 100644
--- a/apps/files/src/components/FilesListVirtual.vue
+++ b/apps/files/src/components/FilesListVirtual.vue
@@ -318,6 +318,8 @@ export default Vue.extend({
// Make some space for the outline
padding: 5px 10px;
margin-left: -10px;
+ // Align two name and ext
+ display: inline-flex;
}
.files-list__row-name-ext {