Compare commits

...

3 Commits

Author SHA1 Message Date
04f860e06a only show card footer if there are reactions 2023-12-28 23:39:18 -06:00
ba8935a3d3 color reactions the same as body text 2023-12-28 23:37:47 -06:00
41157d5205 fix color mode js 2023-12-28 23:36:56 -06:00
2 changed files with 14 additions and 9 deletions

View File

@ -25,16 +25,16 @@
<p class="card-text">{{ gallery.description | default('') }}</p>
</div>
{% if gallery.reactions %}
<div class="card-footer text-body-secondary text-end">
{% if gallery.reactions %}
{% for reaction in gallery.reactions %}
{# TODO: limit total number of reactions shown #}
<span class="badge rounded-pill">
<i class="bi-{{ reaction }}" style="color: black;"></i>
{% for reaction in gallery.reactions %}
{# TODO: limit total number of reactions shown #}
<span class="badge rounded-pill text-body">
<i class="bi-{{ reaction }}"></i>
</span>
{% endfor %}
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</div>

View File

@ -21,7 +21,7 @@ template_vars = {
"bootstrap": {
"src": "./templates/example/bootstrap.bundle.min.js",
},
"theme": {"src": ".templates/example/color-modes.js"},
"theme": {"src": "./templates/example/color-modes.js"},
},
"css": {
"bootstrap": {"src": "./templates/example/bootstrap.min.css"},
@ -73,7 +73,12 @@ template_vars = {
"src": "https://files.c0defox.es/Pictures/arctic-fox.jpg",
"description": "An arctic fox :3",
"title": "fox",
"reactions": ["heart", "backpack3", "balloon", "bag-x"],
"reactions": [],
},
{
"src": "https://files.c0defox.es/Pictures/arctic-fox.jpg",
"description": "An arctic fox :3",
"title": "fox",
},
],
}