mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-14 16:16:21 +00:00
Update AppImage
This commit is contained in:
@@ -92,7 +92,7 @@ export function ScriptTerminalModal({
|
||||
|
||||
const handleResizeMove = (e: MouseEvent | TouchEvent) => {
|
||||
const currentY = "touches" in e ? e.touches[0].clientY : e.clientY
|
||||
const deltaY = startYRef.current - currentY
|
||||
const deltaY = currentY - startYRef.current
|
||||
const viewportHeight = window.innerHeight
|
||||
const deltaVh = (deltaY / viewportHeight) * 100
|
||||
|
||||
@@ -267,13 +267,6 @@ export function ScriptTerminalModal({
|
||||
>
|
||||
Yes
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => handleInteractionResponse("no")}
|
||||
variant="outline"
|
||||
className="flex-1 hover:bg-red-600 hover:text-white hover:border-red-600"
|
||||
>
|
||||
No
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => handleInteractionResponse("cancel")}
|
||||
variant="outline"
|
||||
|
||||
@@ -677,14 +677,15 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({
|
||||
)}
|
||||
|
||||
{/* Terminal Tabs */}
|
||||
<div className="flex gap-1 px-2 py-1 bg-zinc-900 border-b border-zinc-800 overflow-x-auto">
|
||||
<div className="flex items-center gap-2 overflow-x-auto no-scrollbar">
|
||||
{terminals.map((terminal) => (
|
||||
<button
|
||||
key={terminal.id}
|
||||
onClick={() => setActiveTerminalId(terminal.id)}
|
||||
className={`px-3 py-1 text-xs rounded-t transition-colors ${
|
||||
terminal.id === activeTerminalId ? "bg-zinc-800 text-white" : "text-zinc-500 hover:text-white"
|
||||
} ${isScriptModal ? "hidden" : ""}`}
|
||||
}`}
|
||||
style={isScriptModal ? { display: "none" } : undefined}
|
||||
>
|
||||
{terminal.title}
|
||||
</button>
|
||||
@@ -775,7 +776,7 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({
|
||||
)}
|
||||
</div>
|
||||
|
||||
{(isTablet || (!isMobile && !isTablet)) && terminals.length > 0 && (
|
||||
{!isScriptModal && (isTablet || (!isMobile && !isTablet)) && terminals.length > 0 && (
|
||||
<div
|
||||
onMouseDown={handleResizeStart}
|
||||
onTouchStart={handleResizeStart}
|
||||
|
||||
Reference in New Issue
Block a user