Skip to content

Commit 4296542

Browse files
committed
improve tablet and tidy
1 parent dc7678c commit 4296542

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

dotcom-rendering/src/components/marketing/banners/designableBanner/DesignableBanner.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@ const styles = {
623623
grid-template-columns:
624624
minmax(0, 0.5fr)
625625
${phabletContentMaxWidth}
626-
max-content
627-
minmax(0, 0.5fr);
626+
1fr
627+
0;
628628
grid-template-rows: auto auto;
629629
grid-template-areas:
630630
'. copy-container close-button .'
@@ -702,27 +702,21 @@ const styles = {
702702
/* Layout changes only here */
703703
grid-area: close-button;
704704
display: flex;
705+
justify-content: space-between;
705706
706707
${until.phablet} {
707708
flex-direction: row-reverse;
708-
justify-content: space-between;
709709
position: sticky;
710710
top: ${space[2]}px;
711711
}
712712
${from.phablet} {
713713
flex-direction: row;
714-
justify-content: space-around;
715714
column-gap: ${space[0]}px;
716715
padding-right: ${space[2]}px;
717-
justify-self: start;
718716
margin-top: ${space[2]}px;
719717
}
720718
${from.desktop} {
721719
margin-top: ${space[5]}px;
722-
display: flex;
723-
justify-content: space-between;
724-
justify-self: end;
725-
width: 100%;
726720
}
727721
`,
728722
headerContainer: (background: string, bannerHasImage: boolean) => css`

0 commit comments

Comments
 (0)