feat: Break word for filename

This commit is contained in:
freedomlang 2019-11-20 20:14:24 +08:00
parent 4be7166e89
commit a4ba4fc777
2 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,7 @@
<div class="card-content">
<p v-if="selected.length > 1">{{ $t('prompts.filesSelected', { count: selected.length }) }}</p>
<p v-if="selected.length < 2"><strong>{{ $t('prompts.displayName') }}</strong> {{ name }}</p>
<p class="break-word" v-if="selected.length < 2"><strong>{{ $t('prompts.displayName') }}</strong> {{ name }}</p>
<p v-if="!dir || selected.length > 1"><strong>{{ $t('prompts.size') }}:</strong> <span id="content_length"></span> {{ humanSize }}</p>
<p v-if="selected.length < 2"><strong>{{ $t('prompts.lastModified') }}:</strong> {{ humanTime }}</p>

View File

@ -124,3 +124,7 @@ main {
width: 0;
transition: .2s ease width;
}
.break-word {
word-break: break-all;
}