Closed zoglo closed 5 months ago
Since the plugin uses the same class as Bootstrap (.modal), there are collisions with the styles.
The class .modal could be changed to something else and the corresponding styles in the modal.css could also be changed to fix the behavior. https://github.com/Xirdion/contao-modal-bundle/blob/cd0d498ab2559d191e2c27a9c0f2904c9ce875d9/src/Modal/Builder.php#L103C41-L103C41
.modal
I wrote a gist on this topic in the community forums, so it will remain archived: https://community.contao.org/de/showthread.php?85940-contao-modal-bundle-und-Contao-4-13-Hilfe-beim-Einrichten&p=577639#post577639
https://gist.github.com/zoglo/c8759b559d3e3bf45350128189ddd904
The modified template is more of a hack and fixes the .modal problem by changing the class to .modal-nobs and adding above-the-fold styles.
.modal-nobs
Closed as not an issue but a feature.
See here for a solution: https://gist.github.com/zoglo/c8759b559d3e3bf45350128189ddd904
Since the plugin uses the same class as Bootstrap (.modal), there are collisions with the styles.
The class
.modal
could be changed to something else and the corresponding styles in the modal.css could also be changed to fix the behavior. https://github.com/Xirdion/contao-modal-bundle/blob/cd0d498ab2559d191e2c27a9c0f2904c9ce875d9/src/Modal/Builder.php#L103C41-L103C41I wrote a gist on this topic in the community forums, so it will remain archived: https://community.contao.org/de/showthread.php?85940-contao-modal-bundle-und-Contao-4-13-Hilfe-beim-Einrichten&p=577639#post577639
https://gist.github.com/zoglo/c8759b559d3e3bf45350128189ddd904
The modified template is more of a hack and fixes the
.modal
problem by changing the class to.modal-nobs
and adding above-the-fold styles.