From a1d9b410e6137d4cb897af4072c1757d44fd3c66 Mon Sep 17 00:00:00 2001 From: Borghild Selle <104756130+BorghildSelle@users.noreply.github.com> Date: Fri, 16 Feb 2024 08:38:30 +0100 Subject: [PATCH] :art: add auto to x margins and max width (#2110) --- web/pageComponents/pageTemplates/shared/SharedTitle.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/pageComponents/pageTemplates/shared/SharedTitle.tsx b/web/pageComponents/pageTemplates/shared/SharedTitle.tsx index 34e01d6b8..c23fb8ad9 100644 --- a/web/pageComponents/pageTemplates/shared/SharedTitle.tsx +++ b/web/pageComponents/pageTemplates/shared/SharedTitle.tsx @@ -9,6 +9,9 @@ type SharedTitleProps = { const StyledHeading = styled(TitleText)` padding: var(--space-xLarge) var(--layout-paddingHorizontal-large); + max-width: var(--maxViewportWidth); + margin-left: auto; + margin-right: auto; ` const SharedTitle = ({ sharedTitle, background }: SharedTitleProps) => {