awcodes / filament-curator

A media picker plugin for Filament Panels.
MIT License
343 stars 89 forks source link

Filament Curator Srcset Not Changing Image Sizes #380

Closed Nathan269 closed 11 months ago

Nathan269 commented 11 months ago

Filament Version

3.1.20

Plugin Version

3.2.4

PHP Version

8.2

Problem description

No matter what my screen size is set to, whether it's a small screen, medium, large, etc. The image size doesn't adjust accordingly even when I have srcset & sizes set. The set size of the image when you look at the current src within the properties always seems to be set to the largest size set.

Expected behavior

Images should adjust in size depending on what screen size you have when viewing the page.

Steps to reproduce

  1. Upload an image using Filament Curator
  2. Use the following code (adjust your media id to what your image id is set to):

`

`

Reproduction repository

No response

Relevant log output

No response

awcodes commented 11 months ago

Srcset appears to be working fine to me. Even with your example.

https://github.com/awcodes/filament-curator/assets/3596800/326c8594-17e2-4430-bcf1-cba3bd4de7cf