diff --git a/wp-content/themes/3w-2025/inc/seo-remediation.php b/wp-content/themes/3w-2025/inc/seo-remediation.php index 4c68cbe..b9088dd 100644 --- a/wp-content/themes/3w-2025/inc/seo-remediation.php +++ b/wp-content/themes/3w-2025/inc/seo-remediation.php @@ -13,7 +13,7 @@ * Purge stale full-page cache once when this remediation version ships. */ add_action( 'init', function () { - $cache_version = '2026-11-22-2'; + $cache_version = '2026-11-22-3'; if ( get_option( 'threew_seo_remediation_cache_version' ) === $cache_version ) { return; } diff --git a/wp-content/themes/3w-2025/src/styles/components/header-drawer.css b/wp-content/themes/3w-2025/src/styles/components/header-drawer.css index 2c63732..d21d9a8 100644 --- a/wp-content/themes/3w-2025/src/styles/components/header-drawer.css +++ b/wp-content/themes/3w-2025/src/styles/components/header-drawer.css @@ -13,6 +13,9 @@ .threew-header__drawer { display: grid; + /* Cap the column at the drawer width; an auto column floors at the widest + child's min-content, which pushed the search field past the edge. */ + grid-template-columns: minmax(0, 1fr); gap: var(--threew-space-sm); padding: 0 var(--threew-header-padding-x); background: var(--threew-header-surface); @@ -132,6 +135,7 @@ .threew-header__search { order: 2; width: 100%; + min-width: 0; } .threew-header__search .wp-block-search__inside-wrapper { @@ -139,6 +143,7 @@ display: flex; align-items: center; gap: var(--threew-space-2xs); + min-width: 0; border: 1px solid var(--threew-border-inverse); border-radius: var(--threew-radius-pill); background: rgba(255, 255, 255, 0.06); @@ -158,7 +163,11 @@ } .threew-header__search .wp-block-search__input { - flex: 1; + flex: 1 1 0; + /* Default min-width is the input's size attribute (~203px); without this the + flex item refuses to shrink and clips the submit button. */ + min-width: 0; + width: 100%; background: transparent; border: 0; color: var(--wp--preset--color--surface-alt); @@ -178,6 +187,8 @@ .threew-header__search .wp-block-search__button { display: inline-flex; + flex: 0 0 auto; + white-space: nowrap; align-items: center; justify-content: center; padding: 0.45rem 1rem;