Skip to content

Commit

Permalink
Fix Bootstrap 5.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Sep 22, 2022
1 parent 458d0fb commit ef76fce
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/rails_admin/_sidebar_navigation.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ul class="sidebar col-sm-3 col-md-2 btn-toggle-nav list-unstyled bg-light">
<ul class="sidebar col-sm-3 col-md-2 nav btn-toggle-nav list-unstyled bg-light">
<%= main_navigation %>
<%= root_navigation %>
<%= static_navigation %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/rails_admin/main/_dashboard_history.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<% @history.each do |t| %>
<% abstract_model = RailsAdmin.config(t.table).abstract_model %>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions app/views/rails_admin/main/dashboard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<th class="shrink controls"></th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<% @abstract_models.each do |abstract_model| %>
<% if authorized? :index, abstract_model %>
<% index_path = index_path(model_name: abstract_model.to_param) %>
Expand Down Expand Up @@ -42,7 +42,7 @@
</div>
</td>
<td class="links">
<ul class="inline list-inline">
<ul class="nav d-inline list-inline">
<%= menu_for :collection, abstract_model, nil, true %>
</ul>
</td>
Expand Down
2 changes: 1 addition & 1 deletion app/views/rails_admin/main/history.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<% end %>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<% @history.each_with_index do |object, index| %>
<tr>
<% unless object.created_at.nil? %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/rails_admin/main/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
<th class="last shrink"></th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<% @objects.each do |object| %>
<tr class="<%= @abstract_model.param_key %>_row <%= @model_config.list.with(object: object).row_css_class %>">
<% if checkboxes %>
Expand All @@ -138,7 +138,7 @@
</td>
<% end %>
<td class="last links ra-sidescroll-frozen">
<ul class="inline list-inline">
<ul class="nav d-inline list-inline">
<%= menu_for :member, @abstract_model, object, true %>
</ul>
</td>
Expand Down
2 changes: 1 addition & 1 deletion src/rails_admin/styles/widgets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ iframe.wysihtml5-sandbox,
display: none;
}

.links .inline.list-inline .disabled span {
.links .list-inline .disabled span {
color: $gray-600;
}

0 comments on commit ef76fce

Please sign in to comment.