In the Blocks field, is it possible to have the blocks be arranged horizontally instead of vertically?
I want to use the blocks as a gallery. There is the gallery block, however it only supports images and not a mix of videos and images. So I limited the block types to image and video – they’re sortable as usual, however they display vertically.
If I try to change the arrangement to horizontal via custom CSS, the sorting mechanism fails.
Also the layout field is probably the wrong tool for that. (?)
This is how the vertical arrangement looks like now:
As you can see, it uses the blocs/image file blueprint to limit the file types. If you use a different file blueprint, you can change what a user can choose.
And you would of course have to adapt the corresponding snippet to display the stuff…
Thx!
But extending the blueprint so that video file types are accepted doesn’t show a preview of the video file then hosted on youtube or similar, no?
It will accept a .mp4 for instance but it will not display it inside the gallery, or am I misunderstanding it.
(It didn’t work before because when dragging an image via its handle, the mouse cursor has to actually touch the other image you want to swap. When dragging, my mouse cursor was outside the other image because the handle is outside the image as well.)