pqina / filepond-plugin-image-preview

🖼 Show a preview for images dropped on FilePond
https://pqina.nl/filepond
MIT License
46 stars 26 forks source link

Grid not visible #32

Closed NielsLeenheer closed 4 years ago

NielsLeenheer commented 4 years ago

When grid is enabled using the imagePreviewTransparencyIndicator property, it does not show up. The reason is an error in CSS file.

The CSS file contains the following selector: .filepond--image-preview[data-transparency-indicator='grid'] img, .filepond--image-preview[data-transparency-indicator='grid'] canvas: https://github.com/pqina/filepond-plugin-image-preview/blob/master/src/css/image-preview.scss#L17

So it assumes the dataset is on the filepond--image-preview element. But actually, the dataset is on the filepond--image-clip element, a child element of the filepond--image-preview element.

rikschennink commented 4 years ago

Thanks for reporting @NielsLeenheer, fixed in 4.6.2 👍