fix icon spacing in call to action

This commit is contained in:
c0de 2023-12-29 12:16:37 -06:00
parent fba84938c8
commit 5622dc6b28
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
{% for button in call_to_action.buttons %} {% for button in call_to_action.buttons %}
<a <a
href="{{ button.href | default('#') }}" href="{{ button.href | default('#') }}"
class="btn btn-{{ button.theme | default('primary') }} my-2 d-inline-flex" class="btn btn-{{ button.theme | default('primary') }} my-2"
> >
{% if button.icon %} {% if button.icon %}
<i class="bi-{{ button.icon }}"></i> <i class="bi-{{ button.icon }}"></i>

View File

@ -53,8 +53,8 @@ template_vars = {
"header": "This is a call to action", "header": "This is a call to action",
"lead_text": "Some interesting text for the user", "lead_text": "Some interesting text for the user",
"buttons": [ "buttons": [
{"href": "1"}, {"text": "something"},
{"href": "2", "theme": "danger"}, {"theme": "danger", "text": "something dangerous"},
{"href": "3", "theme": "warning", "icon": "exclamation-diamond-fill"}, {"href": "3", "theme": "warning", "icon": "exclamation-diamond-fill"},
{ {
"href": "3", "href": "3",