Skip to content

Commit ef76fce

Browse files
committed
Fix Bootstrap 5.2 compatibility
1 parent 458d0fb commit ef76fce

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

app/views/layouts/rails_admin/_sidebar_navigation.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ul class="sidebar col-sm-3 col-md-2 btn-toggle-nav list-unstyled bg-light">
1+
<ul class="sidebar col-sm-3 col-md-2 nav btn-toggle-nav list-unstyled bg-light">
22
<%= main_navigation %>
33
<%= root_navigation %>
44
<%= static_navigation %>

app/views/rails_admin/main/_dashboard_history.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</th>
1313
</tr>
1414
</thead>
15-
<tbody>
15+
<tbody class="table-group-divider">
1616
<% @history.each do |t| %>
1717
<% abstract_model = RailsAdmin.config(t.table).abstract_model %>
1818
<tr>

app/views/rails_admin/main/dashboard.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<th class="shrink controls"></th>
1515
</tr>
1616
</thead>
17-
<tbody>
17+
<tbody class="table-group-divider">
1818
<% @abstract_models.each do |abstract_model| %>
1919
<% if authorized? :index, abstract_model %>
2020
<% index_path = index_path(model_name: abstract_model.to_param) %>
@@ -42,7 +42,7 @@
4242
</div>
4343
</td>
4444
<td class="links">
45-
<ul class="inline list-inline">
45+
<ul class="nav d-inline list-inline">
4646
<%= menu_for :collection, abstract_model, nil, true %>
4747
</ul>
4848
</td>

app/views/rails_admin/main/history.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<% end %>
3939
</tr>
4040
</thead>
41-
<tbody>
41+
<tbody class="table-group-divider">
4242
<% @history.each_with_index do |object, index| %>
4343
<tr>
4444
<% unless object.created_at.nil? %>

app/views/rails_admin/main/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
<th class="last shrink"></th>
124124
</tr>
125125
</thead>
126-
<tbody>
126+
<tbody class="table-group-divider">
127127
<% @objects.each do |object| %>
128128
<tr class="<%= @abstract_model.param_key %>_row <%= @model_config.list.with(object: object).row_css_class %>">
129129
<% if checkboxes %>
@@ -138,7 +138,7 @@
138138
</td>
139139
<% end %>
140140
<td class="last links ra-sidescroll-frozen">
141-
<ul class="inline list-inline">
141+
<ul class="nav d-inline list-inline">
142142
<%= menu_for :member, @abstract_model, object, true %>
143143
</ul>
144144
</td>

src/rails_admin/styles/widgets.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ iframe.wysihtml5-sandbox,
2121
display: none;
2222
}
2323

24-
.links .inline.list-inline .disabled span {
24+
.links .list-inline .disabled span {
2525
color: $gray-600;
2626
}

0 commit comments

Comments
 (0)