Closed A909M closed 3 weeks ago
Groups are essentially dropdowns, so they need to use the dropdown item view. There isn't currently a way to make them buttons and aligned horizontally, and I'm not interested in doing this right now. Thanks for reporting though.
Package
filament/filament
Package Version
v3.2.120
Laravel Version
11.29.0
Livewire Version
v3.5.12
PHP Version
8.3.12
Problem description
I encountered a layout issue in the Filament Tables component when using
ActionGroup
with button-style actions. The dropdown width does not adjust correctly, leading to display problems. The solution could be to implement a conditional check to dynamically set the dropdown width.ActionGroup
uses button-style actions, thew-auto
class should be applied to adjust the width automatically.w-screen
class should remain, ensuring the dropdown stretches across the screen.Here’s an example of how I’m defining the
ActionGroup
:Expected behavior
Possible Fix: In the
filament\support\resources\views\components\dropdown\index.blade.php
file, apply a conditional check:If the
ActionGroup
contains button-style actions, apply w-auto. If not, applyw-screen
by default.Steps to reproduce
ActionGroup
with button-style actions in a Filament table.Reproduction repository (issue will be closed if this is not valid)
https://github.com/A909M/filament-dropdown-issue
Relevant log output
No response
Donate 💰 to fund this issue