heimseiten / contao-fleximages-bundle
Erweitert das Inhaltselement Galerie um die Option „flexImages verwenden“: Die Bilder werden zeilenweise angeordnet, behalten das Verhältnis von Breite und Höhe und füllen die verfügbare Breite bündig aus.
Package info
github.com/heimseiten/contao-fleximages-bundle
Type:contao-bundle
pkg:composer/heimseiten/contao-fleximages-bundle
Requires
- php: ^8.1
- contao/core-bundle: ^4.13 || ^5.0
Requires (Dev)
- contao/manager-plugin: ^2.12
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This bundle integrates flexImages (https://github.com/Pixabay/JavaScript-flexImages) into the content element gallery.
The gallery gets the option "flexImages verwenden" under the image settings. The images are then arranged in rows: within a row every image keeps its aspect ratio, is scaled to a common height and the row fills the available width flush to both edges. The row height is derived from the first image of the gallery. The gap between the images can be adjusted with the CSS variable --image-gap (default 4px).