From 647943cad12cbbad126e0d1dbba5e554a28ca0e8 Mon Sep 17 00:00:00 2001 From: Joe <104938042+lrljoe@users.noreply.github.com> Date: Sun, 25 May 2025 06:14:30 +0100 Subject: [PATCH 1/2] Change w-100 to w-auto for Bootstrap Bulk Actions Menu --- .../components/tools/toolbar/items/bulk-actions.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/components/tools/toolbar/items/bulk-actions.blade.php b/resources/views/components/tools/toolbar/items/bulk-actions.blade.php index 12ea6bb18..35ecae5aa 100644 --- a/resources/views/components/tools/toolbar/items/bulk-actions.blade.php +++ b/resources/views/components/tools/toolbar/items/bulk-actions.blade.php @@ -94,8 +94,8 @@ class="origin-top-right absolute right-0 mt-2 w-full md:w-48 rounded-md shadow-l {{ $attributes->merge($this->getBulkActionsMenuAttributes) ->class([ - 'dropdown-menu dropdown-menu-right w-100' => $isBootstrap4 && ($this->getBulkActionsMenuAttributes['default-styling'] ?? true), - 'dropdown-menu dropdown-menu-end w-100' => $isBootstrap5 && ($this->getBulkActionsMenuAttributes['default-styling'] ?? true), + 'dropdown-menu dropdown-menu-right w-auto' => $isBootstrap4 && ($this->getBulkActionsMenuAttributes['default-styling'] ?? true), + 'dropdown-menu dropdown-menu-end w-auto' => $isBootstrap5 && ($this->getBulkActionsMenuAttributes['default-styling'] ?? true), ]) ->except(['default','default-styling','default-colors']) }} From 45e1a57d9f3c62e5e4c79dfacba1a91c3c457593 Mon Sep 17 00:00:00 2001 From: Joe <104938042+lrljoe@users.noreply.github.com> Date: Sun, 25 May 2025 06:18:04 +0100 Subject: [PATCH 2/2] Replace w-100 with w-auto on column-select --- .../components/tools/toolbar/items/column-select.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/components/tools/toolbar/items/column-select.blade.php b/resources/views/components/tools/toolbar/items/column-select.blade.php index 388b9171c..cdaab8a59 100644 --- a/resources/views/components/tools/toolbar/items/column-select.blade.php +++ b/resources/views/components/tools/toolbar/items/column-select.blade.php @@ -122,7 +122,7 @@ class="inline-flex items-center px-2 py-1 disabled:opacity-50 disabled:cursor-wa {{ $attributes->merge($this->getColumnSelectButtonAttributes()) ->class([ - 'btn dropdown-toggle d-block w-100 d-md-inline' => $this->getColumnSelectButtonAttributes()['default-styling'], + 'btn dropdown-toggle d-block w-auto d-md-inline' => $this->getColumnSelectButtonAttributes()['default-styling'], ]) ->except(['default-styling', 'default-colors']) }} @@ -135,8 +135,8 @@ class="inline-flex items-center px-2 py-1 disabled:opacity-50 disabled:cursor-wa
$isBootstrap4, - 'dropdown-menu dropdown-menu-end w-100' => $isBootstrap5, + 'dropdown-menu dropdown-menu-right w-auto mt-0 mt-md-3' => $isBootstrap4, + 'dropdown-menu dropdown-menu-end w-auto' => $isBootstrap5, ]) aria-labelledby="columnSelect-{{ $tableName }}" >