Skip to content

Commit cfe3548

Browse files
committed
add padding top on the first image of the gallery
1 parent a9a8403 commit cfe3548

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

dotcom-rendering/src/components/GalleryCaption.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const styles = css`
5454
content: '';
5555
position: absolute;
5656
right: -10px;
57-
top: 0;
57+
top: -12px;
5858
bottom: 0;
5959
width: 1px;
6060
background-color: ${palette('--article-border')};

dotcom-rendering/src/components/GalleryImage.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ const styles = css`
3535
border-left: 1px solid ${palette('--article-border')};
3636
border-right: 1px solid ${palette('--article-border')};
3737
}
38+
39+
${from.desktop} {
40+
&:first-of-type {
41+
padding-top: ${space[3]}px;
42+
}
43+
}
3844
`;
3945

4046
const galleryBodyImageStyles = css`

0 commit comments

Comments
 (0)