You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A very important thing that this package is missing, is the option to set a placeholder picture/a fallback background-image, since the main picture may not load. The problem is, that you just url encode e.g the big property on the image and put it inside of background-image: url("...."), hence it's not possible to add a fallback by myself. Usually this would look like background-image: url("https://..."), url("/assets/images/placeholder.png").
It would be great if you could add such an option for a placeholder picture, or - this seems easier - allow the consumer of this package to define the value of background-image itself. Therefore you would just check if the provided value for "big" (example) contains the string url("... if so, you don't process the provided value any further, elsewise you serialize it and wrap it with url("... itself, as it is the case currently.
The text was updated successfully, but these errors were encountered:
A very important thing that this package is missing, is the option to set a placeholder picture/a fallback background-image, since the main picture may not load. The problem is, that you just url encode e.g the big property on the image and put it inside of background-image: url("...."), hence it's not possible to add a fallback by myself. Usually this would look like background-image: url("https://..."), url("/assets/images/placeholder.png").
It would be great if you could add such an option for a placeholder picture, or - this seems easier - allow the consumer of this package to define the value of background-image itself. Therefore you would just check if the provided value for "big" (example) contains the string url("... if so, you don't process the provided value any further, elsewise you serialize it and wrap it with url("... itself, as it is the case currently.
The text was updated successfully, but these errors were encountered: