Commit 51adb3a
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@844736f1 parent 6b554db commit 51adb3a
6 files changed
Lines changed: 6 additions & 5 deletions
File tree
- build
- modules/ui
- routes/video-detail
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments