mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-14 16:16:21 +00:00
Update terminal-panel.tsx
This commit is contained in:
@@ -366,7 +366,7 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({ websocketUrl, onCl
|
|||||||
import("xterm/css/xterm.css"),
|
import("xterm/css/xterm.css"),
|
||||||
]).then(([Terminal, FitAddon]) => [Terminal, FitAddon])
|
]).then(([Terminal, FitAddon]) => [Terminal, FitAddon])
|
||||||
|
|
||||||
const fontSize = window.innerWidth < 768 ? 10 : 14
|
const fontSize = window.innerWidth < 768 ? 12 : 16
|
||||||
|
|
||||||
const term = new TerminalClass({
|
const term = new TerminalClass({
|
||||||
rendererType: "dom",
|
rendererType: "dom",
|
||||||
@@ -651,7 +651,7 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({ websocketUrl, onCl
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={`overflow-hidden flex flex-col ${isMobile ? "flex-1" : ""}`}
|
className={`overflow-hidden flex flex-col ${isMobile ? "flex-1 min-h-[60vh]" : ""}`}
|
||||||
style={!isMobile ? { height: `${terminalHeight}px`, flexShrink: 0 } : undefined}
|
style={!isMobile ? { height: `${terminalHeight}px`, flexShrink: 0 } : undefined}
|
||||||
>
|
>
|
||||||
{isMobile ? (
|
{isMobile ? (
|
||||||
@@ -724,7 +724,7 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({ websocketUrl, onCl
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!isMobile && terminals.length > 1 && (
|
{window.innerWidth >= 640 && (
|
||||||
<div
|
<div
|
||||||
onMouseDown={handleResizeStart}
|
onMouseDown={handleResizeStart}
|
||||||
onClick={() => console.log("[v0] Handle clicked")}
|
onClick={() => console.log("[v0] Handle clicked")}
|
||||||
|
|||||||
Reference in New Issue
Block a user