Skip to content

Commit

Permalink
bs4 fix applications dropdown clipping (#4318)
Browse files Browse the repository at this point in the history
add data-boundary to fix clipping on small tables
  • Loading branch information
charlienparker authored and bbodine1 committed Aug 20, 2024
1 parent d64d5bc commit e2348b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/datatables/shared/_dropdown.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if @bs4 %>
<% row_actions_id = local_assigns[:row_actions_id].present? ? local_assigns[:row_actions_id] : nil %>
<div class="dropdown <%= 'pull-right' if !defined? pull_left %>" id="<%= row_actions_id %>">
<button class="btn outline p-2 px-3 dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="dropdown_for_<%= row_actions_id %>">
<button class="btn outline p-2 px-3 dropdown-toggle" type="button" data-boundary="window" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="dropdown_for_<%= row_actions_id %>">
<span class="pr-1"><%= l10n("actions") %></span>
</button>
<div class="actions-dropdown dropdown-menu <%= local_assigns[:dropdown_class] %> shadow-sm py-0" aria-labelledby="dropdown_for_<%= row_actions_id %>">
Expand Down

0 comments on commit e2348b6

Please sign in to comment.