aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-03-06 17:56:19 -0500
committercash <cash.costello@gmail.com>2013-03-06 17:56:19 -0500
commitda25d56fa09aeb8ee21767e60b27d854505cd8cd (patch)
treec6aa5831cd5c840d0e3828546b623c2135c3b534 /mod/groups/views
parentd051e788e7ded0811dd14c6b47bcbda602737539 (diff)
downloadelgg-da25d56fa09aeb8ee21767e60b27d854505cd8cd.tar.gz
elgg-da25d56fa09aeb8ee21767e60b27d854505cd8cd.tar.bz2
Fixes #5058 not forcing a size on an image
Diffstat (limited to 'mod/groups/views')
-rw-r--r--mod/groups/views/default/groups/css.php4
-rw-r--r--mod/groups/views/default/groups/profile/summary.php9
2 files changed, 8 insertions, 5 deletions
diff --git a/mod/groups/views/default/groups/css.php b/mod/groups/views/default/groups/css.php
index 39246f856..32dd2b74d 100644
--- a/mod/groups/views/default/groups/css.php
+++ b/mod/groups/views/default/groups/css.php
@@ -9,10 +9,6 @@
.groups-profile > .elgg-image {
margin-right: 10px;
}
-.groups-profile-icon img {
- width: 100%;
- height: auto;
-}
.groups-stats {
background: #eeeeee;
padding: 5px;
diff --git a/mod/groups/views/default/groups/profile/summary.php b/mod/groups/views/default/groups/profile/summary.php
index f1221f19a..3f7496871 100644
--- a/mod/groups/views/default/groups/profile/summary.php
+++ b/mod/groups/views/default/groups/profile/summary.php
@@ -25,7 +25,14 @@ if (!$owner) {
<div class="groups-profile clearfix elgg-image-block">
<div class="elgg-image">
<div class="groups-profile-icon">
- <?php echo elgg_view_entity_icon($group, 'large', array('href' => '')); ?>
+ <?php
+ // we don't force icons to be square so don't set width/height
+ echo elgg_view_entity_icon($group, 'large', array(
+ 'href' => '',
+ 'width' => '',
+ 'height' => '',
+ ));
+ ?>
</div>
<div class="groups-stats">
<p>