Skip to content

ToggleButtons inside a Table Repeater overlap other elements #19506

@thaqebon

Description

@thaqebon

Package

filament/filament

Package Version

v5.3.5

Laravel Version

v12.54.1

Livewire Version

v4.2.1

PHP Version

8.4.18

Problem description

When using the ToggleButtons component inside a Repeater configured with the table layout, the buttons overflows and overlaps adjacent elements, if the column width is constrained (e.g., ->width('10%'))

Image

Expected behavior

The ToggleButtons component should stay contained within its column boundaries

Steps to reproduce

Repeater::make('data')
    ->table([
        TableColumn::make('Title'),
        TableColumn::make('Cycle')->width('10%'),
    ])
    ->schema([
        TextInput::make('title'),
        ToggleButtons::make('cycle')
            ->options([
                'monthly' => 'Monthly',
                'annually' => 'Annually',
            ])
            ->grouped()
            ->inline(),
    ]),

Reproduction repository (issue will be closed if this is not valid)

https://github.com/thaqebon/fi-toggle-buttons-overflow

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions