mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
Fix tool call status stuck on running and improve mobile code block word-wrap
This commit is contained in:
1 parent
9a1b216125
commit
873321b088
4 files changed
+77
-12
No files matched your search
@@ -49,7 +49,7 @@ function CodeBlock({ children, className, ...props }: CodeBlockProps) {
|
||||
|
||||
return (
|
||||
<div className="relative">
|
||||
<pre className={`bg-accent p-1 rounded-lg overflow-x-auto border border-border my-4 ${className || ''}`} {...props}>
|
||||
<pre className={`bg-accent p-1 rounded-lg overflow-x-auto whitespace-pre-wrap break-words border border-border my-4 ${className || ''}`} {...props}>
|
||||
{children}
|
||||
</pre>
|
||||
<button
|
||||
@@ -82,7 +82,7 @@ export function TextPart({ part }: TextPartProps) {
|
||||
const isInline = !className || !className.includes('language-')
|
||||
if (isInline) {
|
||||
return (
|
||||
<code className={className || "bg-accent px-1.5 py-0.5 rounded text-sm text-foreground"} {...props}>
|
||||
<code className={className || "bg-accent px-1.5 py-0.5 rounded text-sm text-foreground break-all"} {...props}>
|
||||
{children}
|
||||
</code>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user