Skip to content

Commit 7e66e2f

Browse files
committed
fix(website): keep the nav inside a 390px viewport
The brand, language switch, theme toggle and Get Maka button overflowed a 390px viewport by 4px, and the 中文 label wrapped onto two lines. Hero and downloads page carry the same call to action, so the button is dropped from the nav at phone widths, and the switch no longer wraps. Generated-by: Claude Code
1 parent 8ffcf48 commit 7e66e2f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

website/src/styles/site.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ code {
9797
align-items: center;
9898
gap: 4px;
9999
}
100+
.nav > * {
101+
flex-shrink: 0;
102+
}
100103
.nav .brand {
101104
display: flex;
102105
align-items: center;
@@ -144,6 +147,7 @@ code {
144147
overflow: hidden;
145148
font-size: 12px;
146149
font-weight: 500;
150+
white-space: nowrap;
147151
}
148152
.lang a,
149153
.lang span {
@@ -1003,6 +1007,13 @@ h2 {
10031007
.wrap {
10041008
padding: 0 20px;
10051009
}
1010+
.nav .btn {
1011+
display: none;
1012+
}
1013+
.nav .brand,
1014+
.nav .theme {
1015+
margin-right: 0;
1016+
}
10061017
.hero {
10071018
padding-top: 40px;
10081019
}

0 commit comments

Comments
 (0)