Skip to content

Commit

Permalink
fix(ui): better align 2fa method names
Browse files Browse the repository at this point in the history
See #12250
  • Loading branch information
nijel committed Aug 12, 2024
1 parent ebd79ed commit c7a8e64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/accounts/templatetags/authnames.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_auth_name(auth: str):

@register.simple_tag
def key_name(device: Device) -> str:
return get_key_name(device)
return format_html('<span class="auth-name">{}</span>', get_key_name(device))


@register.simple_tag
Expand Down
5 changes: 5 additions & 0 deletions weblate/static/style-bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2049,3 +2049,8 @@ tbody.warning {
.recovery-codes li {
font-family: monospace;
}

.auth-name {
margin: 8px 0;
display: inline-block;
}

0 comments on commit c7a8e64

Please sign in to comment.