Skip to content

Commit

Permalink
fix: update button size
Browse files Browse the repository at this point in the history
  • Loading branch information
TinsFox committed Nov 2, 2024
1 parent 6cd2c27 commit 6f6899f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/theme/theme-customizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ export function ThemeCustomizer({ className }: ThemeCustomizerProps) {
<Drawer>
<DrawerTrigger asChild>
<Button size="sm" className="md:hidden" variant="ghost">
<Palette />
<Palette className="size-5" />
</Button>
</DrawerTrigger>
<DrawerContent className="p-6 pt-0">
<Customizer />
<Customizer className="size-5" />
</DrawerContent>
</Drawer>
<div className="hidden items-center md:flex">
<Popover>
<PopoverTrigger asChild>
<Button size="icon" variant="ghost">
<Palette />
<Palette className="size-5" />
</Button>
</PopoverTrigger>
<PopoverContent
Expand Down
4 changes: 2 additions & 2 deletions src/components/theme/theme-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export function ThemeSwitcher() {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="icon">
<Sun className="size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
<Moon className="absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
<Sun className="size-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
<Moon className="absolute size-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
<span className="sr-only">Toggle theme</span>
</Button>
</DropdownMenuTrigger>
Expand Down
5 changes: 3 additions & 2 deletions src/pages/(admin)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CircleHelp } from "lucide-react"
import { Link, Outlet } from "react-router-dom"

import { Icons } from "@/components/icons"
Expand Down Expand Up @@ -34,12 +35,12 @@ export function Component() {
<Search />
<Link to="https://github.com/TinsFox/shadcnui-boilerplate" target="_blank">
<Button variant="ghost" size="icon">
<Icons.gitHub className="size-6" />
<Icons.gitHub className="size-5" />
</Button>
</Link>
<Link to="https://shadcnui-boilerplate.pages.dev" target="_blank">
<Button variant="ghost" size="icon">
<Icons.document className="size-6" />
<CircleHelp className="size-5" />
</Button>
</Link>
<ThemeSwitcher />
Expand Down

0 comments on commit 6f6899f

Please sign in to comment.