From 69b096f8d05b29146a775feef2b2c9ad47ddd0ba Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 8 Dec 2016 07:04:47 -0800 Subject: [PATCH] Gallery: prevent slider from breaking small layout containers. --- e107_plugins/gallery/css/gallery.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/gallery/css/gallery.css b/e107_plugins/gallery/css/gallery.css index c3f9231c7..b016f4882 100644 --- a/e107_plugins/gallery/css/gallery.css +++ b/e107_plugins/gallery/css/gallery.css @@ -17,13 +17,13 @@ ul.gallery-cat > li > div > h3 { text-align: center } /* SLIDESHOW */ -#gallery-slideshow-wrapper { display:block; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; width: 664px; height: 146px; overflow: hidden; background: #000000; margin-left:auto;margin-right:auto } +#gallery-slideshow-wrapper { display:block; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; width: 664px; height: 146px; overflow: hidden; background: #000000; margin-left:auto;margin-right:auto; max-width:100% } #gallery-slideshow-content { width: 3500px; } #gallery-slideshow-content .slide { float: left; width: 679px; padding:12px; height: 146px; white-space:nowrap } -.gallery-slideshow-controls { clear:both; width: 664px; margin-left:auto; margin-right:auto; padding-top:5px; padding-bottom:10px; } +.gallery-slideshow-controls { clear:both; width: 664px; margin-left:auto; margin-right:auto; padding-top:5px; padding-bottom:10px; max-width:100%; } .gallery-slide-item { margin-right:8px; display: inline-block; }