Skip to content

Commit 57f2c9b

Browse files
committed
Center icon in compact header
1 parent da501de commit 57f2c9b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/layouts/_header.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</li>
4747
</ul>
4848

49-
<%= render "layouts/select_language_button", :extra_classes => ["d-none d-md-block", { "border-secondary-subtle" => current_user&.id }] %>
49+
<%= render "layouts/select_language_button", :extra_classes => ["d-none d-md-block py-0", { "border-secondary-subtle" => current_user&.id }] %>
5050
<% if current_user && current_user.id %>
5151
<div class="d-inline-flex dropdown user-menu logged-in">
5252
<button class="d-flex gap-1 align-items-center justify-content-center dropdown-toggle btn btn-outline-secondary border-secondary-subtle bg-body text-secondary px-2 py-1 flex-grow-1 mw-100" type="button" data-bs-toggle="dropdown">

app/views/layouts/_select_language_button.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
<%= tag.button tag.i(:class => "bi bi-translate fs-5 lh-1"),
44
:type => "button",
5-
:class => ["btn btn-outline-secondary align-self-stretch py-0 px-2", *extra_classes],
5+
:class => ["btn btn-outline-secondary align-self-stretch px-2", *extra_classes],
66
:title => t(".title"),
77
:data => { :bs_toggle => "modal", :bs_target => "#select_language_dialog" } %>

0 commit comments

Comments
 (0)