Skip to content

Commit 51adb3a

Browse files
dognose24matticbot
authored andcommitted
Premium Analytics: fix the breadcrumb overflow behind the display:contents trail (#51085)
* Premium Analytics: fix the breadcrumb overflow behind the display:contents trail The StatsBreadcrumbs wrapper is display:contents, so the route-level ':has(> nav)' workaround from #50970 lands min-inline-size on a box-less element and the crumb's nowrap min-content propagates again, widening the whole page into horizontal scrolling (regressed when #51022 swapped the raw Breadcrumbs for StatsBreadcrumbs). Own the constraint in the component: the wrapper's DOM parent and the nav — the actual flex item in the box tree — both get min-inline-size: 0, fixing every page that renders StatsBreadcrumbs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Drop the superseded route-level breadcrumb workaround The ':has(> nav)' rule targets the display:contents trail wrapper (no box, so min-inline-size has nothing to act on) and the nav rule is covered by the component-owned fix — StatsBreadcrumbs' stylesheet is now the single source of the constraint. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Cite the upstream issue for the breadcrumbs slot propagation Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * ci: retrigger checks — workflow runs were never created for the previous push --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/31154241762 Upstream-Ref: Automattic/jetpack@844736f
1 parent 6b554db commit 51adb3a

6 files changed

Lines changed: 6 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ This is an alpha version! The changes listed here are not final.
3535
- Dashboard: Fix the dashboard opening as an empty edit-mode canvas when a post or video detail page was loaded first.
3636
- Dashboard: Make the first widget section a flex column so stacked chrome content lays out correctly until the upstream Gutenberg fix lands.
3737
- Restore PHP 7.2 compatibility for the Premium Analytics admin page.
38+
- Stats breadcrumbs: Fix a long unbroken crumb widening the page into horizontal scrolling instead of truncating.
3839

3940
## 0.1.0 - 2026-08-03
4041
### Added
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-theme'), 'module_dependencies' => array(array('id' => '@jetpack-premium-analytics/data', 'import' => 'static'), array('id' => '@jetpack-premium-analytics/externals', 'import' => 'static'), array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => '9ce038ea451fa656c2e6');
1+
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-theme'), 'module_dependencies' => array(array('id' => '@jetpack-premium-analytics/data', 'import' => 'static'), array('id' => '@jetpack-premium-analytics/externals', 'import' => 'static'), array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => 'd308fce747b8431b775a');

build/modules/ui/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/modules/ui/index.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-theme', 'wp-viewport', 'wp-warning'), 'module_dependencies' => array(array('id' => '@jetpack-premium-analytics/data', 'import' => 'static'), array('id' => '@jetpack-premium-analytics/externals', 'import' => 'static'), array('id' => '@jetpack-premium-analytics/ui', 'import' => 'static'), array('id' => '@jetpack-premium-analytics/widgets-toolkit', 'import' => 'static'), array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static'), array('id' => '@wordpress/widget-primitives', 'import' => 'static')), 'version' => 'a6f88388ac950175bb01');
1+
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-theme', 'wp-viewport', 'wp-warning'), 'module_dependencies' => array(array('id' => '@jetpack-premium-analytics/data', 'import' => 'static'), array('id' => '@jetpack-premium-analytics/externals', 'import' => 'static'), array('id' => '@jetpack-premium-analytics/ui', 'import' => 'static'), array('id' => '@jetpack-premium-analytics/widgets-toolkit', 'import' => 'static'), array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static'), array('id' => '@wordpress/widget-primitives', 'import' => 'static')), 'version' => 'e1b1a3edb7d8ebe25400');

build/routes/video-detail/content.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)