From 063159d07d5218b2b4d066bc1e81c29319f2d43a Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Tue, 9 Mar 2021 14:03:58 +1300 Subject: [PATCH] Re-apply uncropped alignment changes lost in rebase --- packages/block-library/src/gallery/deprecated.scss | 1 + packages/block-library/src/gallery/style.scss | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/gallery/deprecated.scss b/packages/block-library/src/gallery/deprecated.scss index 1bdee3565cc2a..a9bebe2ba8f13 100644 --- a/packages/block-library/src/gallery/deprecated.scss +++ b/packages/block-library/src/gallery/deprecated.scss @@ -18,6 +18,7 @@ flex-direction: column; justify-content: center; position: relative; + align-self: flex-start; // On mobile and responsive viewports, we allow only 1 or 2 columns at the most. width: calc(50% - 1em); diff --git a/packages/block-library/src/gallery/style.scss b/packages/block-library/src/gallery/style.scss index 19800d99394af..77c90b1cf7597 100644 --- a/packages/block-library/src/gallery/style.scss +++ b/packages/block-library/src/gallery/style.scss @@ -109,7 +109,7 @@ &:not(.is-cropped) { figure.wp-block-image:not(#individual-image) { - margin-top: auto; + margin-top: 0; margin-bottom: auto; img { margin-bottom: var(--gallery-block--gutter-size, #{$grid-unit-20});