Skip to content

Commit

Permalink
Use normal select for local select
Browse files Browse the repository at this point in the history
This select has no advantage as a select2
  • Loading branch information
tvdeyen committed Oct 30, 2023
1 parent 61409fd commit 5ec2984
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
15 changes: 4 additions & 11 deletions app/assets/stylesheets/alchemy/frame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,29 +99,22 @@ div#overlay_text_box {
#user_info {
height: $header-height;
font-size: $small-font-size;
padding-left: 2*$default-padding;
padding-left: 2 * $default-padding;
margin-left: auto;
border-bottom: $default-border;
background-color: $header-background;

.select2-container, select {
select {
height: $form-field-height;
margin-top: -3px;
}

.select2-choice, select {
background: transparent;
background-color: transparent;
border: none;
border-radius: 0;
border-left: $default-border;
height: $header-height;
}

.select2-choice {
line-height: 2;
}

.current-user-name {
padding-right: 2*$default-padding;
padding-right: 2 * $default-padding;
}
}
3 changes: 1 addition & 2 deletions app/views/layouts/alchemy/admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@
<%= current_alchemy_user_name %>
<% if Alchemy::I18n.available_locales.length > 1 %>
<%= select_tag 'change_locale',
options_for_select(translations_for_select, ::I18n.locale),
class: 'tiny', is: 'alchemy-select' %>
options_for_select(translations_for_select, ::I18n.locale) %>
<% end %>
</div>
</div>
Expand Down

0 comments on commit 5ec2984

Please sign in to comment.