From e7289b2c3101e2c018cfc1b2df116a28f08ca263 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 21 Aug 2014 14:04:26 -0400 Subject: [PATCH] Image caption toolbox pages resizing. It was at 100% so would be significantly wider than the image. --- Toolkit/Members/css/member.css | 17 ++++++++--------- Toolkit/Template/Image/Left.php | 5 ++--- Toolkit/Template/Image/Right.php | 4 ++-- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/Toolkit/Members/css/member.css b/Toolkit/Members/css/member.css index cbab75b..ca7bf28 100755 --- a/Toolkit/Members/css/member.css +++ b/Toolkit/Members/css/member.css @@ -1364,9 +1364,6 @@ div.thumb { padding-bottom: 25px; padding-top: 20px; } - #toolbox figure { - text-align: center; - } } .category-search-map-sibling { float: none; @@ -1382,9 +1379,11 @@ div.thumb { .search-result-item .memberSR { width: 100% !important; } - .search-result-item .memberSR img { -/* margin-left: auto !important; - margin-right: auto !important; - float: none !important;*/ - } -} \ No newline at end of file +} + +figcaption { + max-width: 100%; + width: 325px; +} + + diff --git a/Toolkit/Template/Image/Left.php b/Toolkit/Template/Image/Left.php index e49c8c8..6494e50 100644 --- a/Toolkit/Template/Image/Left.php +++ b/Toolkit/Template/Image/Left.php @@ -45,15 +45,14 @@ class Toolkit_Template_Image_Left extends Toolkit_Template_Image_ImageAbstract { $imageData = $this->_adapter->getImageSize($size . $this->_src); - $html = '
' - . '
'; + $html = '
'; $html .= parent::getImage($size); if (!empty($this->_caption)) { $html .= '
'; $html .= $this->_caption; $html .= '
'; } - $html .= '
'; + $html .= ''; return $html; } diff --git a/Toolkit/Template/Image/Right.php b/Toolkit/Template/Image/Right.php index c6dbdd3..86974f4 100644 --- a/Toolkit/Template/Image/Right.php +++ b/Toolkit/Template/Image/Right.php @@ -45,14 +45,14 @@ class Toolkit_Template_Image_Right extends Toolkit_Template_Image_ImageAbstract { $imageData = $this->_adapter->getImageSize($size . $this->_src); - $html = '
'; + $html = '
'; $html .= parent::getImage($size); if (!empty($this->_caption)) { $html .= '
'; $html .= $this->_caption; $html .= '
'; } - $html .= '
'; + $html .= ''; return $html; } -- 2.17.1