fix(main-panel): remote file loading state now fills entire main panel

When loading remote content (e.g., README.md from SSH), the loading
indicator now takes over the entire main panel instead of showing
alongside the terminal output. This prevents the awkward half-filled
appearance.
This commit is contained in:
Pedram Amini
2026-02-01 15:47:15 -05:00
parent 8f63b6d87d
commit 88d960e73b

View File

@@ -1503,7 +1503,8 @@ export const MainPanel = React.memo(
)}
{/* Show File Preview in main area when open, otherwise show terminal output and input */}
{previewFile ? (
{/* Skip rendering terminal/preview when loading remote file - loading state takes over entire main area */}
{filePreviewLoading && !previewFile ? null : previewFile ? (
<div
ref={filePreviewContainerRef}
tabIndex={-1}