Minor tweak to user profile home card

This aligns the buttons of the two cards and also the aspect
ratio becomes a tad nicer.
This commit is contained in:
Jonas Schäfer
2021-01-28 20:10:18 +01:00
parent 028f9b35a6
commit f4348600e2
2 changed files with 5 additions and 3 deletions

View File

@@ -885,7 +885,7 @@ nav.welcome {
&.wide { &.wide {
flex: 1 0 auto; flex: 1 0 auto;
display: block; /* display: block; */
} }
.button { .button {

View File

@@ -27,8 +27,10 @@
{#- -#} {#- -#}
{# <img aria-hidden="true" src="{{ url_for("static", filename="img/illus-profile.svg") }}"> #} {# <img aria-hidden="true" src="{{ url_for("static", filename="img/illus-profile.svg") }}"> #}
{#- -#} {#- -#}
<div>
<div>{% call standard_button("edit", url_for(".profile"), class="primary") %}{% trans %}Edit profile{% endtrans %}{% endcall %}</div> <div>{% call standard_button("edit", url_for(".profile"), class="primary") %}{% trans %}Edit profile{% endtrans %}{% endcall %}</div>
<div>{% call standard_button("passwd", url_for(".change_pw"), class="secondary") %}{% trans %}Change password{% endtrans %}{% endcall %}</div> <div>{% call standard_button("passwd", url_for(".change_pw"), class="secondary") %}{% trans %}Change password{% endtrans %}{% endcall %}</div>
</div>
{#- -#} {#- -#}
</li> </li>
{% if user_info.is_admin %} {% if user_info.is_admin %}