diff --git a/src/App.tsx b/src/App.tsx index 2fc9d18..0035bc3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -74,7 +74,7 @@ export default function App() { } return ( -
+
-
-
+
+
{messages.length === 0 && isLoadingHistory && (
diff --git a/src/components/ToolCall.tsx b/src/components/ToolCall.tsx index 7871863..b2498ac 100644 --- a/src/components/ToolCall.tsx +++ b/src/components/ToolCall.tsx @@ -237,14 +237,14 @@ export function ToolCall({ name, input, result }: { name: string; input?: Record {/* Result summary (always visible if result exists) */} {result && !open && ( -
+
{truncateResult(result)}
)} {/* Expanded content */} {open && ( -
+
{inputStr && (
{t('tool.parameters')}
diff --git a/src/index.css b/src/index.css index 465c88e..02f12a7 100644 --- a/src/index.css +++ b/src/index.css @@ -6,11 +6,13 @@ scrollbar-color: #52525b #27272a; } -body { +html, body { margin: 0; background: #1e1e24; color: #d4d4d8; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; + overflow-x: hidden; + max-width: 100vw; } @keyframes fade-in { @@ -80,7 +82,7 @@ body { .markdown-body blockquote { border-left: 3px solid rgba(34,211,238,0.4); padding-left: 12px; margin: 8px 0; opacity: 0.8; } .markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 12px 0 4px; } .markdown-body a { color: #67e8f9; text-decoration: underline; } -.markdown-body table { border-collapse: collapse; margin: 8px 0; } +.markdown-body table { border-collapse: collapse; margin: 8px 0; display: block; overflow-x: auto; max-width: 100%; } .markdown-body th, .markdown-body td { border: 1px solid rgba(255,255,255,0.08); padding: 6px 12px; } .markdown-body th { background: rgba(255,255,255,0.04); } .markdown-body img { max-width: 100%; border-radius: 8px; }