Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpatieMediaLibraryFileUpload panelLayout Grid #15394

Open
danielreales7 opened this issue Jan 21, 2025 · 2 comments
Open

SpatieMediaLibraryFileUpload panelLayout Grid #15394

danielreales7 opened this issue Jan 21, 2025 · 2 comments
Labels

Comments

@danielreales7
Copy link

Package

filament/filament

Package Version

v3.2.133

Laravel Version

v11.38.2

Livewire Version

No response

PHP Version

8.2

Problem description

When I use ->panelLayout('grid') sometimes the styles load wrong

SpatieMediaLibraryFileUpload::make('images_upload')
                                    ->collection('property_images')
                                    ->multiple()
                                    ->responsiveImages()
                                    ->image()
                                    ->imageEditor()
                                    ->label('Imágenes')
                                    ->imagePreviewHeight('250')
//                                    ->panelLayout('grid')
                                    ->columnSpanFull()

Image

Image

Image

Expected behavior

Image

Steps to reproduce

SpatieMediaLibraryFileUpload::make('images_upload')
                                    ->collection('property_images')
                                    ->multiple()
                                    ->responsiveImages()
                                    ->image()
                                    ->imageEditor()
                                    ->label('Imágenes')
                                    ->imagePreviewHeight('250')
                                    ->panelLayout('grid')
                                    ->columnSpanFull()

I have discovered that if the gallery appears at the moment it loads fine, but when using tabs as I show in the project is when it happens constantly

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

https://github.com/danielreales7/test-spatie-lmedia

Relevant log output

@danielreales7
Copy link
Author

I have discovered that if I put activeTab (the gallery with the default images on the first load always appears fine)

Grabacion.de.pantalla.2025-01-21.a.las.22.17.40.mov

However, if it is not active and I have to change between tabs, that is when the problem appears.

Grabacion.de.pantalla.2025-01-21.a.las.22.20.05.mov

@danielreales7
Copy link
Author

I think this problem is related: https://github.com/filamentphp/filament/pull/1997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant