Skip to content

Add space between gallery/image cards with caption#766

Merged
JohnONolan merged 2 commits into
mainfrom
fix-image-card-caption-spacing
Mar 12, 2021
Merged

Add space between gallery/image cards with caption#766
JohnONolan merged 2 commits into
mainfrom
fix-image-card-caption-spacing

Conversation

@PaulAdamDavis

Copy link
Copy Markdown
Member

The spacing between an image/gallery card and another image/gallery card is intentionally tight so that they appear as one cohesive gallery. If the upper card has a caption, its caption is closer to the lower card.

This PR adds more margin to the lower image/gallery card if the upper card has a caption.

(Ignore the squashed full-width image, this is only to illustrative to show the 2 captions)

Before:

Screenshot 2021-03-11 at 19 48 58

After:

Screenshot 2021-03-11 at 19 49 08

Image or gallery cards without captions are not affected:

Screenshot 2021-03-11 at 19 56 48

@JohnONolan JohnONolan merged commit 573e384 into main Mar 12, 2021
@JohnONolan JohnONolan deleted the fix-image-card-caption-spacing branch March 12, 2021 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants