refactor: remove theme toggle from navigation

This commit is contained in:
2026-06-05 16:24:17 +02:00
parent 4791eebf48
commit 24bc63e8e2

View File

@@ -118,27 +118,6 @@
</a> </a>
</div> </div>
<button
id="theme-toggle"
type="button"
data-unstyled-button
class="group relative flex w-full items-center px-7 py-3 text-left transition-colors hover:bg-surface-hover"
aria-label="Toggle theme"
{{if $isCollapsed}}title="Toggle theme"{{end}}
>
<svg class="theme-icon-dark size-6 shrink-0 text-foreground-muted transition-colors duration-200 group-hover:text-foreground" viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
</svg>
<svg class="theme-icon-light hidden size-6 shrink-0 text-foreground-muted transition-colors duration-200 group-hover:text-foreground" viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="5"/>
<path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/>
</svg>
<div class="nav-label-container ml-4 grid min-w-0 flex-1 grid-cols-[1fr] opacity-100">
<div class="overflow-hidden min-w-0">
<span class="whitespace-nowrap text-sm font-medium text-foreground-muted transition-colors duration-200 group-hover:text-foreground">Theme</span>
</div>
</div>
</button>
</div> </div>
</nav> </nav>
{{end}} {{end}}