mirror of
https://github.com/morluto/rea
synced 2026-10-27 22:45:19 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user