Skip to content

Commit 2ef1e0c

Browse files
authored
Long emails in the account/email template extend beyond their containers (#132)
* fix: enable scrolling for emails longer than their containers * fix: corrected account/email and account/login template formatting
1 parent 47a868b commit 2ef1e0c

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

allauth_ui/templates/account/email.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
{% for radio in emailaddress_radios %}
1717
{% with emailaddress=radio.emailaddress %}
1818
<div class="form-control">
19-
<label class="cursor-pointer label border p-3 rounded">
20-
<span class="label-text">{{ emailaddress.email }}
19+
<label class="flex gap-3 cursor-pointer label border rounded px-3">
20+
<span class="grow label-text overflow-auto py-3">{{ emailaddress.email }}
2121
{% if emailaddress.verified %}
2222
<div class="badge badge-primary badge-outline">{% trans "verified" %}</div>
2323
{% endif %}
@@ -56,8 +56,10 @@
5656
<h2 class="py-3 text-lg">{% trans "Add Email Address" %}</h2>
5757
{% trans "Add Email" as button_text %}
5858
{% #form form=form url=action_url button_text=button_text use_default_button="false" %}
59-
{% csrf_token %}
60-
<button type="submit" name="action_add" class="my-3 btn">{{ button_text }}</button>
59+
{% csrf_token %}
60+
<button type="submit" name="action_add" class="my-3 btn">
61+
{{ button_text }}
62+
</button>
6163
{% /form %}
6264
{% endif %}
6365
{% /container %}

allauth_ui/templates/account/login.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
{% url 'account_login' as action_url %}
1414
{% #form form=form url=action_url button_text=heading %}
1515
{% if form.remember %}
16-
<div class="items-start my-2 form-control">
17-
<label class="cursor-pointer label">
18-
{% render_field form.remember class="checkbox checkbox-accent" %}
19-
<span class="ml-2 label-text">{% trans "Remember me" %}</span>
20-
</label>
21-
</div>
16+
<div class="items-start my-2 form-control">
17+
<label class="cursor-pointer label">
18+
{% render_field form.remember class="checkbox checkbox-accent" %}
19+
<span class="ml-2 label-text">{% trans "Remember me" %}</span>
20+
</label>
21+
</div>
2222
{% endif %}
2323
{{ redirect_field }}
2424
{% csrf_token %}

0 commit comments

Comments
 (0)