fix: padding issue when inviteToGroup container has no child

pull/3281/head
Audric Ackermann 4 months ago
parent cd6fd475e3
commit 3e9c1e5060
No known key found for this signature in database

@ -41,7 +41,11 @@ const Container = styled.div<{ noExtraPadding: boolean }>`
flex-direction: row;
justify-content: center;
background-color: var(--background-secondary-color);
padding: ${props => (props.noExtraPadding ? '' : 'var(--margins-lg)')};
// add padding only if we have a child.
&:has(*:not(:empty)) {
padding: ${props => (props.noExtraPadding ? '' : 'var(--margins-lg)')};
}
`;
const TextInner = styled.div`

Loading…
Cancel
Save