Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(webui): finish mobile containment for inline code, tables, chips, user bubbles
hata70505bd1fc91
diff --git a/webui/src/components/FileReferenceChip.tsx b/webui/src/components/FileReferenceChip.tsxindex 5526fec7d..6298c42ae 100644--- a/webui/src/components/FileReferenceChip.tsx+++ b/webui/src/components/FileReferenceChip.tsx@@ -87,7 +87,7 @@ export function FileReferenceChip({<spandata-sheen-text={active ? displayText : undefined}className={cn(- "min-w-0 max-w-full truncate",+ "min-w-0 max-w-full [overflow-wrap:anywhere] sm:truncate",active && "streaming-text-sheen file-reference-sheen",textClassName,)}diff --git a/webui/src/components/MarkdownTextRenderer.tsx b/webui/src/components/MarkdownTextRenderer.tsxindex 3d9c525fa..8aa38a22d 100644--- a/webui/src/components/MarkdownTextRenderer.tsx+++ b/webui/src/components/MarkdownTextRenderer.tsx@@ -339,7 +339,7 @@ function InlineLinkPreviewRow({ link }: { link: InlineLinkPreview }) {<Globe2 className="h-3 w-3" />)}</span>- <span className="min-w-0 truncate leading-normal">+ <span className="min-w-0 [overflow-wrap:anywhere] leading-normal sm:truncate">{label}</span></a>@@ -417,7 +417,7 @@ export default function MarkdownTextRenderer({return (<codeclassName={cn(- "block min-w-0 whitespace-pre bg-transparent p-0 font-mono text-[0.8125rem]",+ "block min-w-0 max-w-full overflow-x-auto whitespace-pre bg-transparent p-0 font-mono text-[0.8125rem]","leading-snug text-inherit",cls,)}@@ -497,6 +497,19 @@ export default function MarkdownTextRenderer({</a>);},+ table({ children, ...props }) {+ // Wrap wide markdown tables in a horizontal-scroll container (the+ // pattern used by DeepSeek/others) so a 6+ column table scrolls inside+ // the conversation column instead of forcing the page wider than 100vw.+ // min-w-max keeps natural column widths; w-full stretches narrow tables.+ return (+ <div className="w-full overflow-x-auto">+ <table className="w-full min-w-max" {...props}>+ {children}+ </table>+ </div>+ );+ },li({ children: markdownChildren, className: itemClassName }) {const link = inlineLinkPreviewFromChildren(markdownChildren);if (link) {diff --git a/webui/src/components/MessageBubble.tsx b/webui/src/components/MessageBubble.tsxindex 7cb9cf97e..51e8fb0b0 100644--- a/webui/src/components/MessageBubble.tsx+++ b/webui/src/components/MessageBubble.tsx@@ -147,8 +147,8 @@ export function MessageBubble({{hasText ? (<pclassName={cn(- "ml-auto w-fit rounded-[18px] bg-secondary/70 px-4 py-2",- "text-left text-[16px]/[1.75] whitespace-pre-wrap break-words",+ "ml-auto w-fit max-w-full min-w-0 rounded-[18px] bg-secondary/70 px-4 py-2",+ "text-left text-[16px]/[1.75] whitespace-pre-wrap [overflow-wrap:anywhere]",)}><CliAppMentionTextdiff --git a/webui/src/globals.css b/webui/src/globals.cssindex 6314f4e94..64edeae50 100644--- a/webui/src/globals.css+++ b/webui/src/globals.css@@ -558,12 +558,10 @@overflow-x: auto;}- /* Wide markdown tables scroll horizontally within the conversation column. */- .markdown-content table {- display: block;- max-width: 100%;- overflow-x: auto;- }+ /* Wide markdown tables scroll horizontally within the conversation column.+ Tables are wrapped in an overflow-x:auto <div> by the markdown renderer's+ custom `table` component (see MarkdownTextRenderer); min-w-max on the+ <table> keeps natural column widths so it scrolls instead of shrinking. *//* Clip any residual horizontal bleed at the thread column edge. Verticalscrolling and internal code-block scroll are unaffected. */