From 2887fb1f4816546c11a5c9994a293bf78f98081e Mon Sep 17 00:00:00 2001 From: Matthew Caron Date: Fri, 14 Feb 2014 16:09:19 -0500 Subject: [PATCH 1/2] Fit shared videos to viewer, just like images. Issue #1648 --- apps/files_sharing/css/public.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css index 21f0c82b82..2d569fd77d 100644 --- a/apps/files_sharing/css/public.css +++ b/apps/files_sharing/css/public.css @@ -71,11 +71,18 @@ p.info a { max-width:100%; } +#imgframe video { + max-height:100%; + max-width:100%; +} + /* some margin for the file type icon */ #imgframe .publicpreview { margin-top: 10%; } + + thead { padding-left: 0 !important; /* fixes multiselect bar offset on shared page */ } From aa1a50f5b339aaf924bd8ceeb56d919a717aee9a Mon Sep 17 00:00:00 2001 From: Matthew Caron Date: Mon, 17 Feb 2014 12:57:32 -0500 Subject: [PATCH 2/2] Consolidate two sections, per code review. Issue #1648 --- apps/files_sharing/css/public.css | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css index 2d569fd77d..5246a4b2fe 100644 --- a/apps/files_sharing/css/public.css +++ b/apps/files_sharing/css/public.css @@ -66,16 +66,12 @@ p.info a { margin:0 auto; } -#imgframe img { +#imgframe img, +#imgframe video { max-height:100%; max-width:100%; } -#imgframe video { - max-height:100%; - max-width:100%; -} - /* some margin for the file type icon */ #imgframe .publicpreview { margin-top: 10%;