diff --git a/AppImage/components/proxmox-dashboard.tsx b/AppImage/components/proxmox-dashboard.tsx index b119a10..0f42ead 100644 --- a/AppImage/components/proxmox-dashboard.tsx +++ b/AppImage/components/proxmox-dashboard.tsx @@ -12,7 +12,6 @@ import Hardware from "./hardware" import { SystemLogs } from "./system-logs" import { Settings } from "./settings" import { OnboardingCarousel } from "./onboarding-carousel" -import { HealthStatusModal } from "./health-status-modal" import { ReleaseNotesModal, useVersionCheck } from "./release-notes-modal" import { getApiUrl, fetchApi } from "../lib/api-config" import { TerminalPanel } from "./terminal-panel" @@ -273,7 +272,7 @@ export function ProxmoxDashboard() { } return ( -
+
setShowReleaseNotes(false)} /> @@ -610,8 +609,12 @@ export function ProxmoxDashboard() {
-
- +
+ @@ -632,7 +635,7 @@ export function ProxmoxDashboard() { - + @@ -644,23 +647,21 @@ export function ProxmoxDashboard() { - -
- +
) } diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index 411b465..7187e1d 100644 --- a/AppImage/components/terminal-panel.tsx +++ b/AppImage/components/terminal-panel.tsx @@ -320,13 +320,21 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl const performResize = () => { const xtermViewport = container.querySelector(".xterm-viewport") as HTMLElement const xtermScreen = container.querySelector(".xterm-screen") as HTMLElement - if (xtermViewport) xtermViewport.style.padding = "0" - if (xtermScreen) xtermScreen.style.padding = "0" + if (xtermViewport) { + xtermViewport.style.padding = "0" + xtermViewport.style.width = "100%" + xtermViewport.style.height = "100%" + } + if (xtermScreen) { + xtermScreen.style.padding = "0" + } fitAddon.fit() const cols = term.cols const rows = term.rows - console.log(`[v0] Terminal resized: ${cols}x${rows}`) + console.log( + `[v0] Terminal ${terminal.id} resized: ${cols}x${rows} (container: ${container.offsetWidth}x${container.offsetHeight})`, + ) // Send resize to backend via HTTP const apiUrl = getApiUrl() @@ -486,7 +494,7 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl const activeTerminal = terminals.find((t) => t.id === activeTerminalId) return ( - <> +