fix: update SearchButton styling

This commit is contained in:
hamster1963
2025-12-28 14:37:02 +08:00
parent 15424513b5
commit 409ec0b62c
+6 -1
View File
@@ -1,6 +1,7 @@
"use client"
import { useCommand } from "@/hooks/use-command"
import { cn } from "@/lib/utils"
import { MagnifyingGlassIcon } from "@heroicons/react/20/solid"
import { Button } from "./ui/button"
@@ -8,11 +9,15 @@ import { Button } from "./ui/button"
export function SearchButton() {
const { openCommand } = useCommand()
const customBackgroundImage = (window.CustomBackgroundImage as string) !== "" ? window.CustomBackgroundImage : undefined
return (
<Button
variant="outline"
size="sm"
className="cursor-pointer rounded-full bg-white px-[9px] hover:bg-accent/50 dark:bg-black dark:hover:bg-accent/50"
className={cn("rounded-full px-[9px] bg-white dark:bg-black", {
"bg-white/70 dark:bg-black/70": customBackgroundImage,
})}
onClick={openCommand}
title="Search"
>