Skip to content

Commit

Permalink
feat: make group icons on homepage show their group images as icons (#44
Browse files Browse the repository at this point in the history
)

* feat: make groups on home page show icons

* feat: make flag a bit thinner
  • Loading branch information
ChasNelson1990 authored Oct 8, 2024
1 parent 0aa1358 commit b65e604
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ckanext/zarr/assets/css/zarr.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
margin-right: 26px;
margin-bottom: 6px;
border-radius: 4px;
text-align: center;
}

.topics li a .topic-link {
Expand Down
4 changes: 2 additions & 2 deletions ckanext/zarr/assets/css/zarr_palette.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
pointer-events: none;
}
.flag-bar {
width: 60px;
width: 30px;
height: 100%;
}
.flag-black {
Expand All @@ -80,4 +80,4 @@

.flag-green {
background: #009E49;
}
}
2 changes: 1 addition & 1 deletion ckanext/zarr/templates/group/snippets/group_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
{% set url = h.url_for(type ~ '.read', id=group.name) %}

{% block item %}
<li><a href="{{ url }}"><p class="topic-top-square"></p><p class="topic-link">{{ _(group.title) }}</p></a></li>
<li><a href="{{ url }}"><p class="topic-top-square"><img src="{{ group.image_url }}" width="36px"/></p><p class="topic-link">{{ _(group.title) }}</p></a></li>
{% endblock %}

0 comments on commit b65e604

Please sign in to comment.