From 1e9bc89855811d61dd3e8ca7b4c4225d7ea6f0ac Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 15 Jun 2017 13:54:02 +0200 Subject: [PATCH] Fix drive icons when the name contains a long word --- www/drive/file.css | 4 ++-- www/drive/file.less | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/www/drive/file.css b/www/drive/file.css index bcb8d4d69..fe798b883 100644 --- a/www/drive/file.css +++ b/www/drive/file.css @@ -345,9 +345,9 @@ span.fa-folder-open { width: 100%; height: 48px; margin: 8px 0; - display: inline-flex; - justify-content: center; + display: inline-block; overflow: hidden; + word-wrap: break-word; } #content div.grid li.element { position: relative; diff --git a/www/drive/file.less b/www/drive/file.less index f2b0f329e..662af52f0 100644 --- a/www/drive/file.less +++ b/www/drive/file.less @@ -402,11 +402,12 @@ span { width: 100%; height: 48px; margin: 8px 0; - display: inline-flex; + display: inline-block; //align-items: center; - justify-content: center; + //justify-content: center; overflow: hidden; //text-overflow: ellipsis; + word-wrap: break-word; } &.element { position: relative;