[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>
)

View File

@@ -118,7 +118,7 @@ const SideBar = () => {
<div className="mx-auto text-sm text-center text-zinc-500" data-tauri-drag-region>
<p></p>
<p className="py-1 text-sm text-zinc-600">{app.state.version}</p>
<p className="py-1 text-xs text-zinc-600">{app.state.version}</p>
</div>
</div>
)

View File

@@ -7,7 +7,7 @@ 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 dark:bg-white/5 dark:hover:bg-white/10 rounded-md text-sm leading-none"
className="flex flex-shrink-0 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}