filament/tables
v3.2.92
v11.11.1
v3.5.1
PHP v8.3.8
If you set ->width('1%')
on an ImageColumn
the header and image gets the width value.
I would expect the ->width()
method to do the same thing for all columns. Right now it sets the column header width on all but ImageColumn
(I believe). For ImageColumn
it sets the column width AND the image width.
// This squeezes the image width AND the column header width.
Tables\Columns\ImageColumn::make('smushed_avatar')
->state('https://gravatar.com/avatar/foo?d=mp&f=y')
->width('1%'),
// This works as expected, like on other columns using the `HasWidth` trait.
Tables\Columns\ImageColumn::make('normal_avatar')
->state('https://gravatar.com/avatar/foo?d=mp&f=y')
->extraHeaderAttributes(['style' => 'width: 1%']),
Login info for reproduction repo:
[email protected]
password
https://github.com/adevade/filament-image-column-width-bug
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too