From 1ef80febcb994dff1cefe418c339b8e26c1c71de Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Mon, 5 Nov 2018 15:46:49 -0800 Subject: [PATCH] fixed filename word-break --- app/main.css | 4 ++++ app/ui/archiveTile.js | 10 +++++----- app/ui/copyDialog.js | 2 +- app/ui/modal.js | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/main.css b/app/main.css index 74a9eaff..1539d7a3 100644 --- a/app/main.css +++ b/app/main.css @@ -31,6 +31,10 @@ progress::-webkit-progress-value { @apply rounded-sm; } +.word-break-all { + word-break: break-all; +} + .main { display: flex; max-width: 64rem; diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js index 77889289..f1f37c92 100644 --- a/app/ui/archiveTile.js +++ b/app/ui/archiveTile.js @@ -96,7 +96,7 @@ function fileInfo(file, action) {

-

${file.name}

+

${file.name}

${bytes( file.size )}
@@ -137,7 +137,7 @@ module.exports = function(state, emit, archive) { alt="Delete" src="${assets.get('close-16.svg')}" onclick=${del}/> -

${archive.name}

+

${archive.name}

${bytes( archive.size )}
@@ -251,7 +251,7 @@ module.exports.uploading = function(state, emit) { class="z-20 flex flex-col items-start border border-grey-light bg-white p-4">

-

${archive.name}

+

${archive.name}

${bytes( archive.size )}
@@ -320,7 +320,7 @@ module.exports.preview = function(state, emit) {

-

${archive.name}

+

${archive.name}

${bytes( archive.size )}
@@ -350,7 +350,7 @@ module.exports.downloading = function(state, emit) {

-

${archive.name}

+

${archive.name}

${bytes( archive.size )}
diff --git a/app/ui/copyDialog.js b/app/ui/copyDialog.js index 87f1456b..ebd4f368 100644 --- a/app/ui/copyDialog.js +++ b/app/ui/copyDialog.js @@ -6,7 +6,7 @@ module.exports = function(name, url) { return html`

${state.translate('notifyUploadDone')}

-

${state.translate( +

${state.translate( 'copyUrlFormLabelWithName', { filename: name } )}

diff --git a/app/ui/modal.js b/app/ui/modal.js index 48d79862..9a0b812f 100644 --- a/app/ui/modal.js +++ b/app/ui/modal.js @@ -2,7 +2,7 @@ const html = require('choo/html'); module.exports = function(state, emit) { return html` -
+
e.stopPropagation()}> ${state.modal(state, emit, close)}