Skip to content

Commit 45b68c3

Browse files
committed
fix gallery meta padding and border for app
1 parent de518d3 commit 45b68c3

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

dotcom-rendering/src/components/ArticleMeta.apps.tsx

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,23 @@ const stretchLines = css`
201201
grid-column: 1 / -1;
202202
`;
203203

204+
const galleryMetaContainer = css`
205+
${grid.column.centre}
206+
padding-bottom: ${space[2]}px;
207+
${from.tablet} {
208+
position: relative;
209+
&::before {
210+
content: '';
211+
position: absolute;
212+
left: -10px;
213+
top: 0;
214+
bottom: 0;
215+
width: 1px;
216+
background-color: ${themePalette('--article-border')};
217+
}
218+
}
219+
`;
220+
204221
export const ArticleMetaApps = ({
205222
branding,
206223
format,
@@ -244,13 +261,7 @@ export const ArticleMetaApps = ({
244261
}
245262
css={[
246263
metaContainerMargins,
247-
isGallery ? grid.column.centre : undefined,
248-
isGallery
249-
? {
250-
marginLeft: space[3],
251-
paddingBottom: space[2],
252-
}
253-
: undefined,
264+
isGallery ? galleryMetaContainer : undefined,
254265
]}
255266
>
256267
<div

0 commit comments

Comments
 (0)