Fix mobile chat layout overflow and sticky prompt input

This commit is contained in:
Chris Scott committed 2025-11-27 22:00:36 -05:00
1 parent 57d83b9cd9
commit 9a2ebc9652
7 files changed
+38 -23

No files matched your search

@@ -98,7 +98,7 @@ export const MessageThread = memo(function MessageThread({ opcodeUrl, sessionID,
}
return (
<div className="flex flex-col space-y-2 p-4">
<div className="flex flex-col space-y-2 p-4 overflow-x-hidden">
{messages.map((msg) => {
const streaming = isMessageStreaming(msg)
const thinking = isMessageThinking(msg)
@@ -418,7 +418,7 @@ export function PromptInput({
return (
<div className={`backdrop-blur-md bg-background/90 border border-border rounded-lg p-1 md:p-3 mx-2 md:mx-4 md:mb-4 max-w-4xl md:mx-auto ${isStandalone ? 'mb-6' : 'mb-1'}`}>
<div className={`backdrop-blur-md bg-background/90 border border-border rounded-lg p-1 md:p-3 mx-2 md:mx-4 md:mb-4 max-w-4xl md:mx-auto pb-safe ${isStandalone ? 'mb-6' : 'mb-2'}`}>
<textarea
+1 -1
View File
@@ -73,7 +73,7 @@ export function TextPart({ part }: TextPartProps) {
}
return (
<div className="prose prose-invert prose-enhanced max-w-none text-foreground">
<div className="prose prose-invert prose-enhanced max-w-none text-foreground overflow-hidden break-words">
<ReactMarkdown
remarkPlugins={[remarkGfm]}
rehypePlugins={[rehypeHighlight, rehypeRaw]}
@@ -114,7 +114,7 @@ export function ToolCallPart({ part, onFileClick }: ToolCallPartProps) {
<div className="border border-border rounded-lg overflow-hidden my-2">
<button
onClick={() => setExpanded(!expanded)}
className="w-full px-4 py-2 bg-card hover:bg-card-hover text-left flex items-center gap-2 text-sm"
className="w-full px-4 py-2 bg-card hover:bg-card-hover text-left flex items-center gap-2 text-sm min-w-0"
>
<span className={getStatusColor()}>{getStatusIcon()}</span>
<span className="font-medium">{part.tool}</span>