diff --git a/core/http/views/chat.html b/core/http/views/chat.html index cbc2539ae..685f006b7 100644 --- a/core/http/views/chat.html +++ b/core/http/views/chat.html @@ -1126,29 +1126,29 @@ SOFTWARE. - - - + + + - - - Tool Call - + + + Tool Call + - @@ -1159,29 +1159,29 @@ SOFTWARE. - - - + + + - - - Tool Result - + + + Tool Result + - @@ -1741,10 +1741,12 @@ SOFTWARE. .tool-call-content, .tool-result-content { max-width: 100%; + width: 100%; overflow-x: auto; overflow-y: auto; word-wrap: break-word; overflow-wrap: break-word; + box-sizing: border-box; } .tool-call-content pre, @@ -1752,6 +1754,7 @@ SOFTWARE. overflow-x: auto; overflow-y: auto; max-width: 100%; + width: 100%; word-wrap: break-word; overflow-wrap: break-word; white-space: pre; @@ -1760,6 +1763,7 @@ SOFTWARE. border-radius: 6px; padding: 12px; margin: 0; + box-sizing: border-box; } .tool-call-content code, @@ -1774,6 +1778,16 @@ SOFTWARE. line-height: 1.5; display: block; max-width: 100%; + width: 100%; + overflow-x: auto; + box-sizing: border-box; + } + + /* Ensure parent containers don't overflow */ + .tool-call-content > *, + .tool-result-content > * { + max-width: 100%; + box-sizing: border-box; } /* Prevent overflow in assistant messages with code/markdown */