[feat] launch option edit and remove

This commit is contained in:
2025-07-08 11:31:43 +08:00
parent 7012f0d9fe
commit 35ecf4ce0a
7 changed files with 102 additions and 30 deletions

View File

@@ -24,7 +24,7 @@ const Card = ({ children, className, ...props }: CardProps) => {
const CardHeader = ({ children }: CardProps) => {
return (
<div className="flex items-center gap-1.5 tracking-wide select-none">
<div className="flex items-center gap-1.5 tracking-wide select-none flex-shrink-0">
{children}
</div>
)
@@ -34,7 +34,7 @@ const CardIcon = ({ children, type, className, ...rest }: CardProps) => {
return (
<div
className={cn(
"flex gap-1.5 items-center font-semibold",
"flex gap-1.5 items-center font-semibold flex-shrink-0",
type === "menu" &&
"transition cursor-pointer hover:bg-black/5 dark:hover:bg-white/5 px-2 py-1 rounded-md active:scale-95",
className,
@@ -46,9 +46,9 @@ const CardIcon = ({ children, type, className, ...rest }: CardProps) => {
)
}
const CardTool = ({ children }: CardProps) => {
const CardTool = ({ children, className }: CardProps) => {
return (
<div className="flex items-center justify-end flex-grow gap-2">
<div className={cn("flex items-center justify-end flex-grow gap-2", className)}>
{children}
</div>
)