Skip to content

Commit

Permalink
fix(ui-dropdown): use dropdown-end on locales dropdown (#1296)
Browse files Browse the repository at this point in the history
* fix(ui-dropdown): use dropdown-end on locales dropdown

* fix(ui-dropdown): use auto width on locales dropdown
  • Loading branch information
WailanTirajoh committed Mar 24, 2024
1 parent 1acb721 commit 17f33fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/frontend/good_job/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@
.btn-outline-secondary {
border-color: #ced4da; /* $gray-400 */
}

.min-w-auto {
min-width: auto;
}
2 changes: 1 addition & 1 deletion app/views/good_job/shared/_navbar.erb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<%= I18n.locale %>
</a>

<ul class="dropdown-menu" aria-labelledby="localeOptions">
<ul class="dropdown-menu min-w-auto" aria-labelledby="localeOptions">
<% possible_locales = I18n.available_locales %>
<% possible_locales.reject { |locale| locale == I18n.locale }.each do |locale| %>
<li><%= link_to locale, url_for(locale: locale), class: "dropdown-item" %></li>
Expand Down

0 comments on commit 17f33fb

Please sign in to comment.