mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-14 08:06:22 +00:00
Update script-terminal-modal.tsx
This commit is contained in:
@@ -32,8 +32,6 @@ interface ScriptTerminalModalProps {
|
|||||||
open: boolean
|
open: boolean
|
||||||
onClose: () => void
|
onClose: () => void
|
||||||
scriptPath: string
|
scriptPath: string
|
||||||
scriptName: string
|
|
||||||
scriptDescription?: string
|
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
}
|
}
|
||||||
@@ -42,8 +40,6 @@ export function ScriptTerminalModal({
|
|||||||
open: isOpen,
|
open: isOpen,
|
||||||
onClose,
|
onClose,
|
||||||
scriptPath,
|
scriptPath,
|
||||||
scriptName,
|
|
||||||
scriptDescription,
|
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
}: ScriptTerminalModalProps) {
|
}: ScriptTerminalModalProps) {
|
||||||
@@ -569,14 +565,12 @@ export function ScriptTerminalModal({
|
|||||||
onEscapeKeyDown={(e) => e.preventDefault()}
|
onEscapeKeyDown={(e) => e.preventDefault()}
|
||||||
hideClose
|
hideClose
|
||||||
>
|
>
|
||||||
<DialogTitle className="sr-only">{scriptName || title}</DialogTitle>
|
<DialogTitle className="sr-only">{title}</DialogTitle>
|
||||||
|
|
||||||
<div className="flex items-center gap-2 p-4 border-b">
|
<div className="flex items-center gap-2 p-4 border-b">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-lg font-semibold">{scriptName || title}</h2>
|
<h2 className="text-lg font-semibold">{title}</h2>
|
||||||
{(scriptDescription || description) && (
|
{description && <p className="text-sm text-muted-foreground">{description}</p>}
|
||||||
<p className="text-sm text-muted-foreground">{scriptDescription || description}</p>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -603,9 +597,11 @@ export function ScriptTerminalModal({
|
|||||||
}`}
|
}`}
|
||||||
style={{ touchAction: "none" }}
|
style={{ touchAction: "none" }}
|
||||||
>
|
>
|
||||||
<GripHorizontal className={`h-4 w-4 transition-colors pointer-events-none ${
|
<GripHorizontal
|
||||||
isResizing ? "text-white" : "text-zinc-600 group-hover:text-white"
|
className={`h-4 w-4 transition-colors pointer-events-none ${
|
||||||
}`} />
|
isResizing ? "text-white" : "text-zinc-600 group-hover:text-white"
|
||||||
|
}`}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user