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
|
||||
onClose: () => void
|
||||
scriptPath: string
|
||||
scriptName: string
|
||||
scriptDescription?: string
|
||||
title: string
|
||||
description: string
|
||||
}
|
||||
@@ -42,8 +40,6 @@ export function ScriptTerminalModal({
|
||||
open: isOpen,
|
||||
onClose,
|
||||
scriptPath,
|
||||
scriptName,
|
||||
scriptDescription,
|
||||
title,
|
||||
description,
|
||||
}: ScriptTerminalModalProps) {
|
||||
@@ -569,14 +565,12 @@ export function ScriptTerminalModal({
|
||||
onEscapeKeyDown={(e) => e.preventDefault()}
|
||||
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>
|
||||
<h2 className="text-lg font-semibold">{scriptName || title}</h2>
|
||||
{(scriptDescription || description) && (
|
||||
<p className="text-sm text-muted-foreground">{scriptDescription || description}</p>
|
||||
)}
|
||||
<h2 className="text-lg font-semibold">{title}</h2>
|
||||
{description && <p className="text-sm text-muted-foreground">{description}</p>}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -603,9 +597,11 @@ export function ScriptTerminalModal({
|
||||
}`}
|
||||
style={{ touchAction: "none" }}
|
||||
>
|
||||
<GripHorizontal className={`h-4 w-4 transition-colors pointer-events-none ${
|
||||
<GripHorizontal
|
||||
className={`h-4 w-4 transition-colors pointer-events-none ${
|
||||
isResizing ? "text-white" : "text-zinc-600 group-hover:text-white"
|
||||
}`} />
|
||||
}`}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user