Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-06-27 14:33:22 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-06-27 14:33:22 +0300
commita8323bbc0536ee82b9f7d852a34bf266125d2033 (patch)
treef00576b5a3492a3c4e47247d5262cfc084a168a5 /apps/files_sharing/css
parent443c1db3a34050b19dd83ef2214035bd14679279 (diff)
Fix placement of icon in public share page for audio files
When the preview for audio files is used an HTML 5 audio element is shown in the public share page. This element is added by the template, so it is already there when the mimetype icon is added to the "#imgframe" element. Instead of appended the icon is now prepended, so it appears before the audio element (prepending instead of appending should make no difference for other types of files, as in that case the "#imgframe" element is empty). Besides that, the CSS was modified to show the icon centered above the audio preview instead of next to it. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files_sharing/css')
-rw-r--r--apps/files_sharing/css/public.scss6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/css/public.scss b/apps/files_sharing/css/public.scss
index 83cba309da7..b2456baeeba 100644
--- a/apps/files_sharing/css/public.scss
+++ b/apps/files_sharing/css/public.scss
@@ -25,6 +25,12 @@
max-width: 100% !important;
}
+#imgframe audio {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
+
#imgframe .text-preview {
display: inline-block;
position: relative;