getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

[Panel] Apply gallery block images field's image settings to preview too #4481

Closed renestalder closed 2 years ago

renestalder commented 2 years ago

Description

This is about the gallery block.

Maybe this is considered a feature request. For me, it's rather a bug.

Currently, the images in the gallery block are rendered with the ratio 1:1 in the editing drawer. This can be overwritten by overwriting the block blueprint.

The image ratio settings and other settings are currently only applied to the editing drawer, not to the vue preview component.

Expected behavior
Either that the same image settings apply to the preview rendering of the gallery too, or that there are other options to configure the preview of the gallery block itself.

Screenshots
Screenshot from 2022-07-06 14-57-12

What the preview looks like


Screenshot from 2022-07-06 14-57-02

What the editing drawer looks like and what I would expect the preview to look like too (in terms of ratio and cover settings).

To reproduce

No specifics.

Your setup

Kirby Version

Console output

Your system (please complete the following information)

Additional context
In general, it would be a nice addition to being able using the gallery images in the same way as the individual image block: Having all fields like alt text, ratio etc. available in the panel. But that would be certainly more of a feature then.

distantnative commented 2 years ago

I'd think some fields from the image block make sense, e.g. ratio, caption, crop. Then one could also use the ratio field value for the preview. Fields like alt text don't really make sense as one would apply the same alt text to all the gallery images.

bastianallgeier commented 2 years ago