fix: inconsistent sizing for vertical media grids

This commit is contained in:
Cory Dransfeldt 2023-08-20 10:28:23 -07:00
parent 00b02c219e
commit d45eea7e93
No known key found for this signature in database

View file

@ -8,7 +8,7 @@
{% for item in media limit: count %}
{% assign alt = item.alt | strip %}
<a href="{{ item.url | stripUtm }}" title="{{ alt | escape }}">
<div class="relative block{% if shape == 'square' %} h-full{% endif %}"{% if shape != 'square' %} style="max-width:226px"{% endif %}>
<div class="relative block h-full"{% if shape != 'square' %} style="max-width:226px"{% endif %}>
<div class="absolute left-0 top-0 h-full w-full rounded-lg border border-purple-600 hover:border-pink-500 dark:border-purple-400 dark:hover:border-pink-500 ease-in-out duration-300{% if item.title %} bg-cover-gradient{% endif %}"></div>
<div class="absolute left-1 bottom-2 drop-shadow-md">
{% if item.title %}