diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css
index 2d569fd77da5424ce76fa23d1cf5502535dfd42d..5246a4b2fec1dd6dde2ec8153c3c27966d8c60a8 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%;