Skip to content

Commit

Permalink
Fix for group images overflowing on the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Nov 28, 2012
1 parent 8bd1579 commit 6dea0a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ckan/public/base/less/group.less
Expand Up @@ -27,3 +27,8 @@
.group-list .module-heading h3 a {
color: @listingHeadingTextColor;
}

.group-list .module-heading .media-image {
overflow: hidden;
max-height: 60px;
}
2 changes: 1 addition & 1 deletion ckan/templates/snippets/group_item.html
Expand Up @@ -3,7 +3,7 @@
{% set url=h.url_for(controller='group', action='read', id=group.name) %}
{% set truncate=truncate or 0 %}
<a class="media-image" href="{{ url }}">
<img src="{{ group.image_url or h.url_for_static('/base/images/placeholder-group.png') }}" width="100" height="60" alt="{{ group.name }}" />
<img src="{{ group.image_url or h.url_for_static('/base/images/placeholder-group.png') }}" width="100" alt="{{ group.name }}" />
</a>
<div class="media-content">
<h3 class="media-heading"><a href={{ url }}>{{ group.title or group.name }}</a></h3>
Expand Down

0 comments on commit 6dea0a8

Please sign in to comment.