Skip to content

Commit fd6f89d

Browse files
committed
Improve linebreaks of menu bar on mobile
1 parent 606dc71 commit fd6f89d

2 files changed

Lines changed: 40 additions & 28 deletions

File tree

static/css/layout.css

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,21 @@ nav {
8585
gap: 0.5rem;
8686
}
8787

88+
.nav-group {
89+
display: flex;
90+
align-items: center;
91+
gap: 1rem;
92+
flex-wrap: nowrap;
93+
white-space: nowrap;
94+
}
95+
96+
.nav-group .external-link::after {
97+
content: "↗";
98+
font-size: 0.7em;
99+
vertical-align: super;
100+
margin-left: 0.1em;
101+
}
102+
88103
.nav-icons {
89104
display: flex;
90105
align-items: center;
@@ -99,15 +114,8 @@ nav {
99114
margin-left: 0;
100115
}
101116

102-
.nav-right .nav-links {
103-
margin-right: 1rem;
104-
}
105-
106-
.nav-links .external-link li::after {
107-
content: "↗";
108-
font-size: 0.7em;
109-
vertical-align: super;
110-
margin-left: 0.1em;
117+
.nav-right .nav-group:not(:last-child) {
118+
margin-right: 0.5rem;
111119
}
112120

113121
.icon-btn {
@@ -453,10 +461,6 @@ blockquote {
453461
justify-content: flex-end;
454462
}
455463

456-
.nav-right .nav-links {
457-
margin-right: 0.5rem;
458-
}
459-
460464
.insights-container,
461465
.insight-page,
462466
.team-container {
@@ -469,26 +473,32 @@ blockquote {
469473
padding: 0.5em 0.25em;
470474
margin: 0 0.25em;
471475
justify-content: center;
476+
gap: 0.25rem;
477+
row-gap: 0.25rem;
472478
}
473479

474480
.nav-left {
475481
flex: 0 0 100%;
476482
justify-content: center;
477-
margin-bottom: 0.5rem;
478483
}
479484

480485
.nav-right {
481-
flex: 1 1 auto;
486+
flex: 1 1 100%;
482487
justify-content: center;
488+
gap: 0.5rem;
489+
row-gap: 0.25rem;
483490
}
484491

485-
.nav-right .nav-links {
486-
margin-right: 0;
487-
justify-content: center;
492+
.nav-group {
493+
flex: 0 0 auto;
494+
gap: 0.75rem;
488495
}
489496

490-
.nav-links {
491-
gap: 0.75rem;
497+
.nav-group-1,
498+
.nav-group-2,
499+
.nav-icons {
500+
flex-basis: 100%;
501+
justify-content: center;
492502
}
493503

494504
.nav-icons {

templates/_topnav.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
<a href="/"><span>CodeClash</span></a>
44
</div>
55
<div class="nav-right">
6-
<ul class="nav-links">
7-
<a href="/arenas/"><li>Arenas</li></a>
8-
<a href="https://arxiv.org/pdf/2511.00839.pdf" class="external-link"><li>Paper</li></a>
9-
<a href="/insights/"><li>Insights</li></a>
10-
<a href="https://viewer.codeclash.ai" class="external-link"><li>Trajectories</li></a>
11-
<a href="" class="external-link"><li>Docs</li></a>
12-
<a href="/team/"><li>Team</li></a>
13-
</ul>
6+
<div class="nav-group nav-group-1">
7+
<a href="/arenas/">Arenas</a>
8+
<a href="https://arxiv.org/pdf/2511.00839.pdf" class="external-link">Paper</a>
9+
<a href="/insights/">Insights</a>
10+
</div>
11+
<div class="nav-group nav-group-2">
12+
<a href="https://viewer.codeclash.ai" class="external-link">Trajectories</a>
13+
<a href="" class="external-link">Docs</a>
14+
<a href="/team/">Team</a>
15+
</div>
1416
<div class="nav-icons">
1517
<a href="https://github.com/codeclash-ai/codeclash" class="icon-btn" aria-label="GitHub" title="Check out our code on GitHub" target="_blank" rel="noopener noreferrer">
1618
<img src="/static/images/logos/github-mark.svg" class="theme-icon" alt="GitHub" />

0 commit comments

Comments
 (0)