/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/admin-ui/src/breadcrumbs/style.module.css
33 строки
682 B
Chi-Hsuan Huang
fix(admin-ui): reset the wp-admin li margin that misaligns Breadcrumbs (#81134)
05 авг 2026, 05:02
Не верифицирован
05 авг 2026, 05:02
7a1e659
Код
Авторство
О чём код?
.list { list-style: none; padding: 0; margin: 0; } /* * Preceding items keep their intrinsic width; only the last (current) item * is allowed to shrink so that the truncation styles on `.current` engage. * The margin reset keeps wp-admin's bottom margin on `li` out of the trail. */ .list > li { flex-shrink: 0; margin: 0; } .list > li:last-child { flex-shrink: 1; min-width: 0; } /* @TODO: Remove truncation styles once `Text` supports truncation natively. */ .current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .separator { color: var(--wpds-color-stroke-surface-neutral); margin: 0 var(--wpds-dimension-gap-sm); user-select: none; }