fix(website): keep phone navigation labels from splitting mid-word (#7497)

The phone header gave each link an equal minmax(0, 1fr) column and
allowed overflow-wrap: anywhere, so single-word labels such as
"Showcases", "Anleitungen", "Руководства" and "Посібники" broke between
letters at 320-430px. Links now share the row as flex items that never
shrink below their longest word. Labels wrap only at spaces, and a word
wider than the whole row can still break, preserving the enlarged-text
fit from #3598.

Refs #3597
This commit is contained in:
Pirro Zani
2026-10-27 17:25:04 +02:00
committed by GitHub
parent a95b83c2b0
commit 313af7119c
+4 -5
View File
@@ -2666,17 +2666,16 @@ pre code {
width: calc(100% - 2.5rem);
}
.navigation {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
justify-content: space-between;
gap: 0.5rem 0.8rem;
font-size: 0.875rem;
}
/* Share the row evenly, but never narrower than a link's longest word. */
.navigation a {
min-width: 0;
flex: 1 1 0;
max-width: 100%;
min-height: 40px;
white-space: normal;
overflow-wrap: anywhere;
overflow-wrap: break-word;
}
.hero {
padding-block: 3.5rem 3rem;