diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-30 10:28:42 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-30 10:28:59 +0100 |
commit | c12545b58120423c31241cbd88b376eb756d109c (patch) | |
tree | 8d025a5d09a1386b2ed6487c7b442d1e4a4407a8 /core/css/styles.scss | |
parent | 809058cb3ca68c74307b056c1581836f2b51b260 (diff) | |
download | nextcloud-server-c12545b58120423c31241cbd88b376eb756d109c.tar.gz nextcloud-server-c12545b58120423c31241cbd88b376eb756d109c.zip |
Truncate filename in the middle on filepicker
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/css/styles.scss')
-rw-r--r-- | core/css/styles.scss | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/css/styles.scss b/core/css/styles.scss index da84befd16c..88361111d92 100644 --- a/core/css/styles.scss +++ b/core/css/styles.scss @@ -874,6 +874,16 @@ code { padding-left: 51px; background-position: 7px 7px; cursor: pointer; + // avoid taking full width + max-width: 0; + .filename-parts { + display: flex; + &__first { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + } } .filesize, .date { width: 80px; @@ -917,6 +927,9 @@ code { background-size: contain; line-height: $name-height; max-width: none; + .filename-parts { + justify-content: center; + } } &.filesize { line-height: $name-height / 3; |