[fix] remove inappropiate animation

This commit is contained in:
Purp1e
2025-03-23 16:59:02 +08:00
parent 2860408ec0
commit 03e5704a6e
2 changed files with 3 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ const LaunchOption = () => {
<CardTool>
{tool.state.launchOptions.map((option, index) => (
<ToolButton key={index} onClick={() => tool.setLaunchIndex(index)}>
{index + 1}
{option.name || index + 1}
</ToolButton>
))}
<ToolButton onClick={() => tool.addLaunchOption({ option: "", name: "" })}>

View File

@@ -1,5 +1,4 @@
import { cn } from "@heroui/react"
import { motion } from "framer-motion"
import type { ReactNode } from "react"
interface CardProps {
@@ -11,11 +10,7 @@ interface CardProps {
const Card = ({ children, className, ...props }: CardProps) => {
return (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.3}}
<div
className={cn(
"dark:bg-white/[3%] dark:border-white/[6%] px-3 py-3 flex flex-col gap-2.5 border w-full rounded-lg bg-white/40 border-black/[6%]"
, className)}
@@ -23,7 +18,7 @@ const Card = ({ children, className, ...props }: CardProps) => {
{...props}
>
{children}
</motion.div>
</div>
)
}