diff --git a/src/components/services/group.jsx b/src/components/services/group.jsx index f25f7ec10..f646f5535 100644 --- a/src/components/services/group.jsx +++ b/src/components/services/group.jsx @@ -15,6 +15,7 @@ export default function ServicesGroup({ disableCollapse, useEqualHeights, groupsInitiallyCollapsed, + isSubgroup, }) { const panel = useRef(); @@ -22,14 +23,22 @@ export default function ServicesGroup({ if (layout?.initiallyCollapsed ?? groupsInitiallyCollapsed) panel.current.style.height = `0`; }, [layout, groupsInitiallyCollapsed]); + let groupMargin = layout?.header === false ? "-my-1" : ""; + if (isSubgroup && layout?.header === false) groupMargin = "-my-3"; + + let groupPadding = layout?.header === false ? "px-1" : "p-1"; + if (isSubgroup) groupPadding = ""; + return (
@@ -96,6 +105,7 @@ export default function ServicesGroup({ disableCollapse={disableCollapse} useEqualHeights={useEqualHeights} groupsInitiallyCollapsed={groupsInitiallyCollapsed} + isSubgroup /> ))}