Skip to content

Commit 2e7db88

Browse files
lroolleclaude
andcommitted
feat(web): move GitHub icon to header nav
- Add GitHub SVG icon to top nav-right (before theme toggle) - Simplify footer (remove redundant GitHub link) - Header placement avoids conflict with floating bottom toolbar 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bf4c346 commit 2e7db88

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

internal/web/templates.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,7 @@ func renderTopNav(projectName, sessionID string) string {
18051805
b.WriteString(`</div>`)
18061806
b.WriteString(`</div>`)
18071807
b.WriteString(`<div class="nav-right">`)
1808+
b.WriteString(`<a href="https://github.com/thevibeworks/ccx" target="_blank" rel="noopener noreferrer" class="icon-btn" title="GitHub"><svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg></a>`)
18081809
b.WriteString(`<button class="icon-btn" id="theme-toggle" title="Toggle theme (d)">◐</button>`)
18091810
b.WriteString(`<a href="/settings" class="icon-btn" title="Settings">◎</a>`)
18101811
b.WriteString(`</div>`)
@@ -1818,8 +1819,6 @@ func renderFooter() string {
18181819
<div class="footer-inner">
18191820
<span class="footer-brand"><span class="brand-cc">cc</span><span class="brand-x">x</span></span>
18201821
<span class="footer-sep">·</span>
1821-
<a href="https://github.com/thevibeworks/ccx" target="_blank" rel="noopener noreferrer" class="footer-link">GitHub</a>
1822-
<span class="footer-sep">·</span>
18231822
<span class="footer-text">by thevibeworks</span>
18241823
</div>
18251824
</footer>`
@@ -2125,11 +2124,6 @@ code, pre, .session-id, .model-badge {
21252124
}
21262125
.footer-brand { font-weight: 700; font-size: 14px; }
21272126
.footer-sep { opacity: 0.5; }
2128-
.footer-link {
2129-
color: var(--text-muted);
2130-
text-decoration: none;
2131-
}
2132-
.footer-link:hover { color: var(--primary); text-decoration: underline; }
21332127
.footer-text { font-size: 12px; }
21342128
21352129
/* Two-panel navigation */

0 commit comments

Comments
 (0)