Skip to content

Commit 4a9c4ed

Browse files
authored
Merge pull request #2270 from lrljoe/BootstrapMenuFix
Change w-100 to w-auto for Bootstrap Bulk Actions Menu and ColumnSelect
2 parents 0f9f255 + 45e1a57 commit 4a9c4ed

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

resources/views/components/tools/toolbar/items/bulk-actions.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ class="origin-top-right absolute right-0 mt-2 w-full md:w-48 rounded-md shadow-l
9494
{{
9595
$attributes->merge($this->getBulkActionsMenuAttributes)
9696
->class([
97-
'dropdown-menu dropdown-menu-right w-100' => $isBootstrap4 && ($this->getBulkActionsMenuAttributes['default-styling'] ?? true),
98-
'dropdown-menu dropdown-menu-end w-100' => $isBootstrap5 && ($this->getBulkActionsMenuAttributes['default-styling'] ?? true),
97+
'dropdown-menu dropdown-menu-right w-auto' => $isBootstrap4 && ($this->getBulkActionsMenuAttributes['default-styling'] ?? true),
98+
'dropdown-menu dropdown-menu-end w-auto' => $isBootstrap5 && ($this->getBulkActionsMenuAttributes['default-styling'] ?? true),
9999
])
100100
->except(['default','default-styling','default-colors'])
101101
}}

resources/views/components/tools/toolbar/items/column-select.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class="inline-flex items-center px-2 py-1 disabled:opacity-50 disabled:cursor-wa
122122
{{
123123
$attributes->merge($this->getColumnSelectButtonAttributes())
124124
->class([
125-
'btn dropdown-toggle d-block w-100 d-md-inline' => $this->getColumnSelectButtonAttributes()['default-styling'],
125+
'btn dropdown-toggle d-block w-auto d-md-inline' => $this->getColumnSelectButtonAttributes()['default-styling'],
126126
])
127127
->except(['default-styling', 'default-colors'])
128128
}}
@@ -135,8 +135,8 @@ class="inline-flex items-center px-2 py-1 disabled:opacity-50 disabled:cursor-wa
135135
<div
136136
x-bind:class="{ 'show': open }"
137137
@class([
138-
'dropdown-menu dropdown-menu-right w-100 mt-0 mt-md-3' => $isBootstrap4,
139-
'dropdown-menu dropdown-menu-end w-100' => $isBootstrap5,
138+
'dropdown-menu dropdown-menu-right w-auto mt-0 mt-md-3' => $isBootstrap4,
139+
'dropdown-menu dropdown-menu-end w-auto' => $isBootstrap5,
140140
])
141141
aria-labelledby="columnSelect-{{ $tableName }}"
142142
>

0 commit comments

Comments
 (0)