Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/admin-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Bug Fixes

- `Breadcrumbs`: Let the `nav` shrink below its content width (`min-width: 0`) so a long current crumb truncates with an ellipsis instead of widening the page into horizontal scrolling ([#81301](https://github.com/WordPress/gutenberg/pull/81301)).

### Internal

- Stop publishing the `src` directory to npm. The package's `exports` field only exposes the built artifacts, so the source files were unreachable by consumers and only inflated the package size ([#77285](https://github.com/WordPress/gutenberg/pull/77285)).
Expand Down
2 changes: 1 addition & 1 deletion packages/admin-ui/src/breadcrumbs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const Breadcrumbs = ( { items }: BreadcrumbsProps ) => {
}

return (
<nav aria-label={ __( 'Breadcrumbs' ) }>
<nav aria-label={ __( 'Breadcrumbs' ) } className={ styles.root }>
<Stack
render={ <ul /> }
direction="row"
Expand Down
9 changes: 9 additions & 0 deletions packages/admin-ui/src/breadcrumbs/style.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* The nav renders as a flex item in the page header; the default
* `min-width: auto` would keep the list from shrinking and the `.current`
* truncation styles below from engaging.
*/
.root {
min-width: 0;
}

.list {
list-style: none;
padding: 0;
Expand Down
Loading