From 35feff7fafdd2f2130cbe2795353ce3c0a4c86aa Mon Sep 17 00:00:00 2001 From: "K. Adam White" Date: Wed, 7 Oct 2026 13:49:40 -0400 Subject: [PATCH 1/2] Prevent full-width menus from causing horizontal scroll 100vw does not account for the size of the nav bar, whereas 100% will resolve against the relative positioning context --- src/view.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view.scss b/src/view.scss index 832ff95..8da6551 100644 --- a/src/view.scss +++ b/src/view.scss @@ -20,8 +20,8 @@ } &.menu-width-full { - max-width: 100vw; - width: 100vw; + max-width: 100%; + width: 100%; } .menu-container__close-button { From 0e68c39512cf5fcd4d21dc12a6ec38d15067e621 Mon Sep 17 00:00:00 2001 From: "K. Adam White" Date: Wed, 7 Oct 2026 13:51:02 -0400 Subject: [PATCH 2/2] Bump version to 1.1.5 --- README.md | 4 ++++ hm-mega-menu-block.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc5f6db..91de270 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,10 @@ Commits in the `release` branch may be [tagged for installation via packagist](h ## Changelog +### 1.1.5 + +- Eliminate unwanted horizontal scrolling on long pages by using 100% max width on full-width menus instead of 100vw + ### 1.1.4 - Resolve PHPCS warnings where static analysis could not detect pre-sanitized values. diff --git a/hm-mega-menu-block.php b/hm-mega-menu-block.php index 2b1db1b..6f1bad4 100644 --- a/hm-mega-menu-block.php +++ b/hm-mega-menu-block.php @@ -2,7 +2,7 @@ /** * Plugin Name: HM Mega Menu Block * Description: A megamenu block. - * Version: 1.1.4 + * Version: 1.1.5 * Requires at least: 6.5 * Requires PHP: 7.2 * License: GPL-2.0-or-later