UI: ThemeToggle niekurczacy w railu (shrink-0), ikony rowne (app + admin)
This commit is contained in:
@@ -185,7 +185,7 @@ export default function Layout() {
|
||||
const footerRail = (
|
||||
<div className="mt-auto flex flex-col items-center gap-2.5 border-t border-line px-2 pb-4 pt-3">
|
||||
<Avatar name={fullName} size={32} />
|
||||
<ThemeToggle className="h-8 w-8 p-0 [&_svg]:h-4 [&_svg]:w-4" />
|
||||
<ThemeToggle className="h-8 w-8 p-0" />
|
||||
<button
|
||||
type="button"
|
||||
onClick={doLogout}
|
||||
@@ -193,7 +193,7 @@ export default function Layout() {
|
||||
title="Wyloguj"
|
||||
className="grid h-8 w-8 cursor-pointer place-items-center rounded-[10px] border border-line bg-card text-dim shadow-card transition-colors hover:border-danger/45 hover:text-danger"
|
||||
>
|
||||
<LogOut className="h-4 w-4" />
|
||||
<LogOut className="h-5 w-5" />
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -234,7 +234,7 @@ export default function Layout() {
|
||||
const footerRail = (
|
||||
<div className="mt-auto flex flex-col items-center gap-2.5 border-t border-line px-2 pb-4 pt-3">
|
||||
<Avatar name={fullName} size={32} />
|
||||
<ThemeToggle className="h-8 w-8 p-0 [&_svg]:h-4 [&_svg]:w-4" />
|
||||
<ThemeToggle className="h-8 w-8 p-0" />
|
||||
<button
|
||||
type="button"
|
||||
onClick={doLogout}
|
||||
@@ -242,7 +242,7 @@ export default function Layout() {
|
||||
title="Wyloguj"
|
||||
className="grid h-8 w-8 cursor-pointer place-items-center rounded-[10px] border border-line bg-card text-dim shadow-card transition-colors hover:border-danger/45 hover:text-danger"
|
||||
>
|
||||
<LogOut className="h-4 w-4" />
|
||||
<LogOut className="h-5 w-5" />
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user