Skip to content

Commit

Permalink
fix width for login elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Lung committed Nov 17, 2024
1 parent a1aeee9 commit cab5ea0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ tr:nth-child(even) {
align-items: center;
}

.login-box-item {
flex-grow: 1;
}

.text-rotated {
transform: rotate(90deg);
font-weight: normal;
Expand Down
8 changes: 6 additions & 2 deletions src/Templates/translatable/kissj/login.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h2>{% trans %}login.registrationFor{% endtrans %}{{ event.readableName }}</h2>
{% if event.eventType.isLoginSkautisAllowed %}
<div class="login-box">
<a href="{{ skautisLoginUri }}" class="btn">
<a href="{{ skautisLoginUri }}" class="btn login-box-item">
{% trans %}login.skautis{% endtrans %}
</a>
{% if bothLogins and lastLogin == 'skautis' %}
Expand All @@ -22,7 +22,11 @@
{% endif %}
{% if event.eventType.isLoginEmailAllowed %}
<div class="login-box">
<form action="{{ url_for('sendLoginEmail', {'eventSlug': event.slug}) }}" method="POST">
<form
action="{{ url_for('sendLoginEmail', {'eventSlug': event.slug}) }}"
method="POST"
class="login-box-item"
>
<div class="form-group">
<label for="form-email">{% trans %}login.email{% endtrans %}:</label>
<input
Expand Down

0 comments on commit cab5ea0

Please sign in to comment.