From c1768296e50a6f63a68f97c7a77494c907c6a6b0 Mon Sep 17 00:00:00 2001 From: Azhar Ali Date: Fri, 7 Aug 2026 04:50:45 +0500 Subject: [PATCH] Plugin Directory: Change pre block overflow to auto. The pre elements in the plugin directory currently use overflow: scroll, which unconditionally reserves gutter space for both vertical and horizontal scrollbars. Because these blocks lack a height constraint, vertical overflow does not occur. Changing this to auto removes the empty vertical gutter and keeps horizontal scrolling only where content genuinely overflows. See https://meta.trac.wordpress.org/ticket/8264 --- .../themes/pub/wporg-plugins-2024/client/components/_code.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/client/components/_code.scss b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/client/components/_code.scss index 550783976a..cf8747d8f3 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/client/components/_code.scss +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/client/components/_code.scss @@ -3,7 +3,7 @@ pre { background-color: #f7f7f7; border: 1px solid var(--wp--preset--color--light-grey-1); border-radius: 2px; - overflow: scroll; + overflow: auto; } code {