Skip to content

Commit ab8998d

Browse files
committed
Fix position of galleries submeta bottom border in the grid
1 parent 48b4428 commit ab8998d

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

dotcom-rendering/src/components/SubMeta.tsx

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,19 @@ const listStyles = css`
8484
background-repeat: no-repeat;
8585
`;
8686

87-
const listWrapper = (design: ArticleDesign): SerializedStyles => {
88-
if (design === ArticleDesign.Gallery) {
89-
return css`
90-
${grid.column.centre}
91-
padding-bottom: 0.75rem;
92-
margin-bottom: 6px;
93-
border-bottom: 1px solid ${palette('--article-border')};
94-
`;
95-
}
87+
const listWrapper = css`
88+
padding-bottom: 0.75rem;
89+
margin-bottom: 6px;
90+
border-bottom: 1px solid ${palette('--article-border')};
91+
`;
9692

97-
return css`
98-
padding-bottom: 0.75rem;
99-
margin-bottom: 6px;
100-
border-bottom: 1px solid ${palette('--article-border')};
101-
`;
102-
};
93+
const galleryWrapperStyles = css`
94+
${grid.column.centre}
95+
96+
${from.leftCol} {
97+
${grid.between('centre-column-start', 'right-column-end')}
98+
}
99+
`;
103100

104101
const listItemStyles = css`
105102
${textSans14};
@@ -257,7 +254,13 @@ export const SubMeta = ({
257254
<span css={labelStyles(format.design)}>
258255
Explore more on these topics
259256
</span>
260-
<div css={listWrapper(format.design)}>
257+
<div
258+
css={[
259+
listWrapper,
260+
format.design == ArticleDesign.Gallery &&
261+
galleryWrapperStyles,
262+
]}
263+
>
261264
<ul css={listStyles}>
262265
{links.map((link) => (
263266
<li css={listItemStyles} key={link.url}>

0 commit comments

Comments
 (0)