kirby
kirby copied to clipboard
this.content.image.cards.srcSet has disappeared on page objects
Describe the bug
this.content.image.cards.srcSet has disappeared on page objects inside a block custom component
Kirby Version
3.6
Console output
Cannot read properties of undefined (reading 'srcset')
That's correct since we removed cards and list items in 3.6 as separate components. Please try image.srcset
instead.
Yes indeed there is a srcset field but it is used for the very small thumbnails (list view) and the sizes stops at 76px which make this srcset not usable for a preview in a block for example.
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw" srcset="http://XXXXX-38x.jpg 38w, http://XXXXX-76x.jpg 76w" alt="XXXXX">
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
I am still interested by this enhancement !
This issue has been automatically marked as stale because it has not had recent activity. This is for us to prioritize issues that are still relevant to our community. It will be closed if no further activity occurs within the next 14 days. If this issue is still relevant to you, please leave a comment.