filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
19.39k stars 2.97k forks source link

Adding ->url() to a column when using grid, adds extra blank column #14771

Open andy-UKC opened 1 week ago

andy-UKC commented 1 week ago

Package

filament/filament

Package Version

v3.0.0

Laravel Version

v11

Livewire Version

v3

PHP Version

8.3

Problem description

If you have a Grid, and inside that there is a column with a url('somehting'), an extra column is added before the url column. It is blank, and causes the remaining columns to be bunched. In testing, it is also dependent on there being an edit route in getPages(). It is the same issue as mentioned here: https://github.com/filamentphp/filament/discussions/9361

Screenshot 2024-11-12 at 10 47 17

Expected behavior

no additional columns to be added when using ->url()

Screenshot 2024-11-12 at 10 47 45

Steps to reproduce

in the repo, either comment out the ->url() line, or the edit route in getPages()

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

https://github.com/andy-UKC/filament-url-grid-bug

Relevant log output

No response

Donate 💰 to fund this issue

Fund with Polar