From 98238b5993d091e84b989f8b6fe760ae05b8c85e Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Wed, 1 Sep 2021 14:32:41 +1200 Subject: [PATCH] Gallery block: Fix problem with overflowing captions on new gallery block format (#34402) Co-authored-by: Glen Davies --- packages/block-library/src/gallery/style.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/gallery/style.scss b/packages/block-library/src/gallery/style.scss index 9f2f59213f8af..30450edbc7cc6 100644 --- a/packages/block-library/src/gallery/style.scss +++ b/packages/block-library/src/gallery/style.scss @@ -52,12 +52,13 @@ font-size: $default-font-size; left: 0; margin-bottom: 0; - max-height: 100%; + max-height: 60%; overflow: auto; - padding: 40px 10px 9px; + padding: 0 8px 8px; position: absolute; text-align: center; width: 100%; + box-sizing: border-box; img { display: inline;