From 2112d2bdaee6ca2214cd04128c3b3474372864e6 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Sun, 9 Apr 2023 19:03:04 +0200 Subject: [PATCH] [BUGFIX] refactor buttons --- frontend/scss/components/_btns.scss | 2 +- templates/index.html.tera | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/scss/components/_btns.scss b/frontend/scss/components/_btns.scss index f05a25c..8541077 100644 --- a/frontend/scss/components/_btns.scss +++ b/frontend/scss/components/_btns.scss @@ -1,5 +1,5 @@ .btn { - @apply rounded-md px-3 py-2 text-sm font-semibold text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 cursor-pointer text-center; + @apply inline-block rounded-md px-3 py-2 text-sm font-semibold text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 cursor-pointer text-center; &-primary { @apply bg-primary-600 hover:bg-primary-500 focus-visible:outline-primary-600; diff --git a/templates/index.html.tera b/templates/index.html.tera index a69fa07..6ef5c9c 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -160,11 +160,11 @@ {% endfor %} {% if cur_user_participates %} Abmelden + class="btn btn-attention btn-fw">Abmelden {% endif %} {% if trip.max_people > trip.rower | length and trip.cox_id != loggedin_user.id and cur_user_participates == false%} Mitrudern + class="btn btn-primary btn-fw">Mitrudern {% endif %}