[feat] hide notice on successful start + tool button bg on dark mode

This commit is contained in:
Purp1e
2025-03-23 13:53:28 +08:00
parent 7e2e556485
commit 08017293b0
5 changed files with 9 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ const CardIcon = ({ children, type, className, ...rest }: CardProps) => {
className={cn(
"flex gap-1.5 items-center font-semibold",
type === "menu" &&
"transition cursor-pointer hover:bg-black/5 px-2 py-1 rounded-md active:scale-95",
"transition cursor-pointer hover:bg-black/5 dark:hover:bg-white/5 px-2 py-1 rounded-md active:scale-95",
className,
)}
{...rest}

View File

@@ -1,14 +1,13 @@
import type { ReactNode } from "react"
interface ToolButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
interface ToolButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
children?: ReactNode
}
export const ToolButton = ({ children, ...rest }: ToolButtonProps) => {
return (
<button
type="button"
className="flex gap-0.5 active:scale-95 items-center min-w-7 justify-center px-2 py-1.5 bg-black/5 transition hover:bg-black/10 rounded-md text-sm leading-none"
className="flex gap-0.5 active:scale-95 items-center min-w-7 justify-center px-2 py-1.5 bg-black/5 transition hover:bg-black/10 dark:bg-white/5 dark:hover:bg-white/10 rounded-md text-sm leading-none"
{...rest}
>
{children}