From 8c6ccaf707320c5a4d60cd2abd4b2cfe8f117c77 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 11 Jul 2024 13:27:22 +0800 Subject: [PATCH] Prevent empty void at the bottom of editor when block directory results are present (#63397) Co-authored-by: talldan Co-authored-by: Mamaduka Co-authored-by: annezazu --- .../src/components/downloadable-block-list-item/style.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/block-directory/src/components/downloadable-block-list-item/style.scss b/packages/block-directory/src/components/downloadable-block-list-item/style.scss index beee32bc90db9..8f95297bd9ef0 100644 --- a/packages/block-directory/src/components/downloadable-block-list-item/style.scss +++ b/packages/block-directory/src/components/downloadable-block-list-item/style.scss @@ -6,6 +6,12 @@ display: grid; grid-template-columns: auto 1fr; + // The item contains absolutely positioned items. + // Set `position: relative` on the parent to prevent overflow issues + // in scroll containers. + // See: https://github.com/WordPress/gutenberg/issues/63384 + position: relative; + &:hover { @include button-style__focus(); }