-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(helpers): correct srcset for images (#1191)
* fix: prevent from using missing urls for srcset of an image * chore: changeset * chore: lint
- Loading branch information
Showing
3 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"@shopware-pwa/helpers-next": patch | ||
--- | ||
|
||
Prevent from getting an incorrect srcset format when img url is not set. | ||
|
||
before when there were no urls for 400w and 800w: | ||
`src="image1.jpg 100w, 400w, 800w"` | ||
|
||
now only the entry with an URL defined is returned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters