From d914b2187690c48c239d399da861650aca00db0d Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 14 Sep 2022 11:11:43 +0200 Subject: [PATCH] fix: also apply top margin to audio in firefox Based on https://github.com/nextcloud/viewer/pull/1371 . If we are displaying an audio file in a single page share provide enough margin to display the speed settings. Signed-off-by: Max --- apps/files_sharing/css/public.css | 2 +- apps/files_sharing/css/public.scss | 2 +- apps/files_sharing/css/publicView.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css index 2fbadf933ce..662e6003ff1 100644 --- a/apps/files_sharing/css/public.css +++ b/apps/files_sharing/css/public.css @@ -62,7 +62,7 @@ margin-right: auto; } -#imgframe:has(audio) { +#imgframe #viewer[data-handler=audios] { margin-top: 400px; } diff --git a/apps/files_sharing/css/public.scss b/apps/files_sharing/css/public.scss index 3a71f308f36..72762bd3bcd 100644 --- a/apps/files_sharing/css/public.scss +++ b/apps/files_sharing/css/public.scss @@ -45,7 +45,7 @@ $download-button-section-height: 200px; margin-right: auto; } -#imgframe:has(audio) { +#imgframe #viewer[data-handler=audios] { // for speed settings margin-top: 400px; } diff --git a/apps/files_sharing/css/publicView.css b/apps/files_sharing/css/publicView.css index e8b116994c5..6e3b5f5a003 100644 --- a/apps/files_sharing/css/publicView.css +++ b/apps/files_sharing/css/publicView.css @@ -62,7 +62,7 @@ margin-right: auto; } -#imgframe:has(audio) { +#imgframe #viewer[data-handler=audios] { margin-top: 400px; } -- 2.39.5