@@ -30,7 +30,7 @@ export function SiteHeader() {
buttonVariants({
variant: "ghost",
}),
- "w-9 px-0"
+ "h-8 w-8 px-0"
)}
>
@@ -47,7 +47,7 @@ export function SiteHeader() {
buttonVariants({
variant: "ghost",
}),
- "w-9 px-0"
+ "h-8 w-8 px-0"
)}
>
diff --git a/apps/www/components/theme-customizer.tsx b/apps/www/components/theme-customizer.tsx
index 68b59153bb..1d3af9e39e 100644
--- a/apps/www/components/theme-customizer.tsx
+++ b/apps/www/components/theme-customizer.tsx
@@ -57,11 +57,10 @@ export function ThemeCustomizer() {
}, [])
return (
-
+
-
@@ -69,8 +68,19 @@ export function ThemeCustomizer() {
-
-
+
+
+
+ Customize
+
+
+
+
+
+
{mounted ? (
<>
{["zinc", "rose", "blue", "green", "orange"].map((color) => {
@@ -92,7 +102,7 @@ export function ThemeCustomizer() {
})
}
className={cn(
- "flex h-9 w-9 items-center justify-center rounded-full border-2 text-xs",
+ "flex h-8 w-8 items-center justify-center rounded-full border-2 text-xs",
isActive
? "border-[--theme-primary]"
: "border-transparent"
@@ -109,7 +119,7 @@ export function ThemeCustomizer() {
>
{isActive && (
@@ -131,30 +141,16 @@ export function ThemeCustomizer() {
>
) : (
-
-
-
-
-
+
+
+
+
+
)}
-
-
-
-
- Customize
-
-
-
-
-
-
-
+
)
}
@@ -363,7 +359,10 @@ function Customizer() {
)
}
-function CopyCodeButton() {
+function CopyCodeButton({
+ className,
+ ...props
+}: React.ComponentProps
) {
const [config] = useConfig()
const activeTheme = themes.find((theme) => theme.name === config.theme)
const [hasCopied, setHasCopied] = React.useState(false)
@@ -388,19 +387,22 @@ function CopyCodeButton() {
})
setHasCopied(true)
}}
- className="md:hidden"
+ className={cn("md:hidden", className)}
+ {...props}
>
{hasCopied ? (
) : (
)}
- Copy
+ Copy code
)}