Skip to content

Commit bed30be

Browse files
committed
Revert "Improve linebreaks of menu bar on mobile"
This reverts commit fd6f89d.
1 parent fd6f89d commit bed30be

2 files changed

Lines changed: 28 additions & 40 deletions

File tree

static/css/layout.css

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,6 @@ 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-
10388
.nav-icons {
10489
display: flex;
10590
align-items: center;
@@ -114,8 +99,15 @@ nav {
11499
margin-left: 0;
115100
}
116101

117-
.nav-right .nav-group:not(:last-child) {
118-
margin-right: 0.5rem;
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;
119111
}
120112

121113
.icon-btn {
@@ -461,6 +453,10 @@ blockquote {
461453
justify-content: flex-end;
462454
}
463455

456+
.nav-right .nav-links {
457+
margin-right: 0.5rem;
458+
}
459+
464460
.insights-container,
465461
.insight-page,
466462
.team-container {
@@ -473,32 +469,26 @@ blockquote {
473469
padding: 0.5em 0.25em;
474470
margin: 0 0.25em;
475471
justify-content: center;
476-
gap: 0.25rem;
477-
row-gap: 0.25rem;
478472
}
479473

480474
.nav-left {
481475
flex: 0 0 100%;
482476
justify-content: center;
477+
margin-bottom: 0.5rem;
483478
}
484479

485480
.nav-right {
486-
flex: 1 1 100%;
481+
flex: 1 1 auto;
487482
justify-content: center;
488-
gap: 0.5rem;
489-
row-gap: 0.25rem;
490483
}
491484

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

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

504494
.nav-icons {

templates/_topnav.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
<a href="/"><span>CodeClash</span></a>
44
</div>
55
<div class="nav-right">
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>
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>
1614
<div class="nav-icons">
1715
<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">
1816
<img src="/static/images/logos/github-mark.svg" class="theme-icon" alt="GitHub" />

0 commit comments

Comments
 (0)