Fix the new expand on click option

This commit is contained in:
Amauri CHAMPEAUX 2023-08-09 18:08:23 +02:00
parent 872f1ca3a5
commit 63203587df
2 changed files with 6 additions and 1 deletions

View File

@ -472,7 +472,7 @@ div#tarteaucitronServices {
} }
#tarteaucitron #tarteaucitronServices .tarteaucitronTitle + [id^="tarteaucitronDetails"] { #tarteaucitron #tarteaucitronServices .tarteaucitronTitle + [id^="tarteaucitronDetails"] {
width: 100%; width: Calc(100% - 3rem);
font-weight:500; font-weight:500;
margin:0; margin:0;
padding:1.5rem; padding:1.5rem;

View File

@ -284,6 +284,11 @@ var tarteaucitron = {
document.getElementsByTagName('head')[0].appendChild(customThemeMiddle); document.getElementsByTagName('head')[0].appendChild(customThemeMiddle);
} }
// disable the expand option if services grouped by category
if (tarteaucitron.parameters.groupServices == true) {
tarteaucitron.parameters.showDetailsOnClick = false;
}
// css for the popup bar TODO: add it on the css file // css for the popup bar TODO: add it on the css file
if (tarteaucitron.orientation === 'popup') { if (tarteaucitron.orientation === 'popup') {
var customThemePopup = document.createElement('style'), var customThemePopup = document.createElement('style'),