UI: ThemeToggle niekurczacy w railu (shrink-0), ikony rowne (app + admin)

This commit is contained in:
tisachi
2026-10-17 03:44:12 +02:00
parent c0a5ed39d9
commit 2ed575a13b
4 changed files with 6 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ export function ThemeToggle({ className = '' }: { className?: string }) {
onClick={toggle}
aria-label="Przełącz motyw"
title="Przełącz motyw"
className={`inline-flex items-center justify-center p-2.5 rounded-[10px] bg-card border border-line text-dim shadow-card hover:text-ink hover:border-accent/45 cursor-pointer transition-all duration-150 ${className}`.trim()}
className={`inline-flex shrink-0 items-center justify-center p-2.5 rounded-[10px] bg-card border border-line text-dim shadow-card hover:text-ink hover:border-accent/45 cursor-pointer transition-all duration-150 ${className}`.trim()}
>
{theme === 'dark' ? <Sun className="w-5 h-5" /> : <Moon className="w-5 h-5" />}
</button>