fix: long file names in dashboard preview dialogs

This commit is contained in:
Bobby 2022-06-28 08:57:49 +07:00
parent 9e4d477d09
commit 2b195652a5
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09
2 changed files with 6 additions and 2 deletions

View File

@ -245,6 +245,10 @@ fieldset[disabled] .select select:hover {
}
}
.has-word-break-all {
word-break: break-all
}
/** Fontello overrides **/
.icon-gauge::before {

View File

@ -952,8 +952,8 @@ page.displayPreview = id => {
div.innerHTML = `
<div class="content has-text-centered">
<p>
<div class="has-text-weight-bold">${file.name}</div>
<div>${file.original}</div>
<div class="has-text-weight-bold has-word-break-all">${file.name}</div>
<div class="has-word-break-all">${file.original}</div>
</p>
${file.thumb
? `<p class="swal-display-thumb-container">