From 40a3b018389ed88898e7fe5e66fc854b2f58db75 Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Tue, 26 Sep 2017 14:09:09 +0200
Subject: [PATCH] Fix display of Download entry text

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
---
 apps/files_sharing/css/mobile.scss      | 5 -----
 apps/files_sharing/css/public.scss      | 5 ++++-
 apps/files_sharing/templates/public.php | 2 +-
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/apps/files_sharing/css/mobile.scss b/apps/files_sharing/css/mobile.scss
index 8e58aa439c6..00a7cd1baf2 100644
--- a/apps/files_sharing/css/mobile.scss
+++ b/apps/files_sharing/css/mobile.scss
@@ -5,11 +5,6 @@
 	position: absolute !important;
 }
 
-/* hide text of download button, only show icon */
-#download-text {
-	display: none;
-}
-
 /* hide size and date columns */
 table th#headerSize,
 table td.filesize,
diff --git a/apps/files_sharing/css/public.scss b/apps/files_sharing/css/public.scss
index c87ae46b5d0..ef37d785e92 100644
--- a/apps/files_sharing/css/public.scss
+++ b/apps/files_sharing/css/public.scss
@@ -94,6 +94,10 @@ thead {
 	margin-right: auto;
 }
 
+.download-size {
+	opacity: .5;
+}
+
 .directLink label {
 	font-weight: normal;
 	opacity: .5;
@@ -129,7 +133,6 @@ thead {
 
 #remote_address {
 	width: 200px;
-
 	margin-right: 4px;
 	height: 31px;
 }
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 0c12c86da09..4e9ff1e8a6a 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -55,7 +55,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
 					<li>
 						<a href="<?php p($_['downloadURL']); ?>" id="download">
 							<span class="icon icon-download"></span>
-							<span id="download-text"><?php p($l->t('Download'))?> (<?php p($_['fileSize']) ?>)</span>
+							<?php p($l->t('Download'))?>&nbsp;<span class="download-size">(<?php p($_['fileSize']) ?>)</span>
 						</a>
 					</li>
 					<li>
-- 
GitLab