From 9b856107b03fffc9c0bb30ff6b80ceed7e7411f8 Mon Sep 17 00:00:00 2001 From: francy51 Date: Wed, 8 Apr 2026 19:07:44 -0400 Subject: [PATCH] fix(ui): Fix terminal response area clipping on right side - Add overflow-x-hidden to prevent horizontal scrolling at container level - Add break-words to content container for proper word breaking - Add break-words to plain text and markdown rendering - Add break-all to links and inline code for long content - Ensure all content stays within viewport width Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/Terminal/TerminalOutput.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/MosaicIQ/src/components/Terminal/TerminalOutput.tsx b/MosaicIQ/src/components/Terminal/TerminalOutput.tsx index 5954733..3ae5df1 100644 --- a/MosaicIQ/src/components/Terminal/TerminalOutput.tsx +++ b/MosaicIQ/src/components/Terminal/TerminalOutput.tsx @@ -97,16 +97,16 @@ export const TerminalOutput: React.FC = ({ const renderPlainText = (content: string) => { const lines = content.split('\n'); return ( -
+
{lines.map((line, i) => ( -
{line || '\u00A0'}
+
{line || '\u00A0'}
))}
); }; const renderMarkdown = (content: string) => ( -
+
= ({ href={href} target="_blank" rel="noreferrer" - className="text-[#7fc0ff] underline decoration-[#58a6ff]/50 underline-offset-4 transition-colors hover:text-[#b7ddff]" + className="text-[#7fc0ff] underline decoration-[#58a6ff]/50 underline-offset-4 transition-colors hover:text-[#b7ddff] break-all" > {children} @@ -162,11 +162,11 @@ export const TerminalOutput: React.FC = ({ const isBlock = Boolean(className?.includes('language-')) || value.includes('\n'); return isBlock ? ( - + {value} ) : ( - + {value} ); @@ -284,13 +284,13 @@ export const TerminalOutput: React.FC = ({ return (
-
+
{history.map((entry) => (