kirby icon indicating copy to clipboard operation
kirby copied to clipboard

this.content.image.cards.srcSet has disappeared on page objects

Open tristantbg opened this issue 3 years ago • 4 comments

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')

tristantbg avatar Nov 30 '21 18:11 tristantbg

That's correct since we removed cards and list items in 3.6 as separate components. Please try image.srcset instead.

distantnative avatar Nov 30 '21 19:11 distantnative

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">

tristantbg avatar Dec 01 '21 08:12 tristantbg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Aug 10 '22 10:08 stale[bot]

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 !

tristantbg avatar Aug 16 '22 22:08 tristantbg

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.

github-actions[bot] avatar Feb 13 '23 00:02 github-actions[bot]