Skip to content
Snippets Groups Projects
Unverified Commit 6cb0067c authored by Michael Weimann's avatar Michael Weimann
Browse files

tweak badge image style

parent 16f9003c
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
{% macro userBadge(badge_link, showButtons, showRest) -%}
{% if badge_link %}
<div class="card box-shadow w-100">
<div >
<div class="bg-opaque">
{% if badge_link.badge.image %}
<img class="card-img-top aspect-ratio-16by9"
alt="Thumbnail Badge {{badge_link.badge.name}}"
......@@ -65,7 +65,7 @@
{% macro badge(badge) -%}
{% if badge %}
<div class="card box-shadow w-100">
<div >
<div class="bg-opaque">
{% if badge.image %}
<img class="card-img-top aspect-ratio-16by9"
alt="Thumbnail Badge {{badge.name}}"
......
......@@ -762,5 +762,5 @@ h6,
.aspect-ratio-16by9 {
aspect-ratio: 16 / 9;
object-fit: cover;
object-fit: contain;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment