Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long emails in the account/email template extend beyond their containers #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions allauth_ui/templates/account/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
{% for radio in emailaddress_radios %}
{% with emailaddress=radio.emailaddress %}
<div class="form-control">
<label class="cursor-pointer label border p-3 rounded">
<span class="label-text">{{ emailaddress.email }}
<label class="flex gap-3 cursor-pointer label border rounded px-3">
<span class="grow label-text overflow-auto py-3">{{ emailaddress.email }}
{% if emailaddress.verified %}
<div class="badge badge-primary badge-outline">{% trans "verified" %}</div>
{% endif %}
Expand Down Expand Up @@ -56,8 +56,10 @@
<h2 class="py-3 text-lg">{% trans "Add Email Address" %}</h2>
{% trans "Add Email" as button_text %}
{% #form form=form url=action_url button_text=button_text use_default_button="false" %}
{% csrf_token %}
<button type="submit" name="action_add" class="my-3 btn">{{ button_text }}</button>
{% csrf_token %}
<button type="submit" name="action_add" class="my-3 btn">
{{ button_text }}
</button>
{% /form %}
{% endif %}
{% /container %}
Expand Down
12 changes: 6 additions & 6 deletions allauth_ui/templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
{% url 'account_login' as action_url %}
{% #form form=form url=action_url button_text=heading %}
{% if form.remember %}
<div class="items-start my-2 form-control">
<label class="cursor-pointer label">
{% render_field form.remember class="checkbox checkbox-accent" %}
<span class="ml-2 label-text">{% trans "Remember me" %}</span>
</label>
</div>
<div class="items-start my-2 form-control">
<label class="cursor-pointer label">
{% render_field form.remember class="checkbox checkbox-accent" %}
<span class="ml-2 label-text">{% trans "Remember me" %}</span>
</label>
</div>
{% endif %}
{{ redirect_field }}
{% csrf_token %}
Expand Down