Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ai-pdf-chatbot/app/chat/[chatId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function ChatDetailPage({ params }: { params: Promise<{ chatId: s
onShareTokenChange={setShareToken}
/>
</div>
<div className="flex-1 overflow-y-auto px-4 py-6">
<div className="min-h-0 flex-1 overflow-y-auto px-4 py-6">
<div className="mx-auto flex max-w-2xl flex-col gap-4">
{messages
.filter((m) => m.role !== 'system')
Expand Down
2 changes: 1 addition & 1 deletion ai-pdf-chatbot/app/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function ChatHomePageInner() {

return (
<>
<div className="flex-1 overflow-y-auto px-4 py-6">
<div className="min-h-0 flex-1 overflow-y-auto px-4 py-6">
{pendingInput ? (
<div className="mx-auto flex max-w-2xl flex-col gap-4">
<ChatMessage role="user" content={pendingInput} />
Expand Down
2 changes: 1 addition & 1 deletion ai-pdf-chatbot/components/chat-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function ChatInput({
}

return (
<form onSubmit={handle} className="flex items-end gap-2 border-t border-border bg-card/40 p-4">
<form onSubmit={handle} className="flex shrink-0 items-end gap-2 border-t border-border bg-card/40 p-4">
<Textarea
value={value}
onChange={(e) => setValue(e.target.value)}
Expand Down
4 changes: 2 additions & 2 deletions ai-pdf-chatbot/components/chat-shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ export function ChatShell({ children }: { children: React.ReactNode }) {
<span className="truncate text-sm font-medium">AI PDF Chatbot</span>
</header>

<main className="flex min-w-0 flex-1">
<section className="flex min-w-0 flex-1 flex-col">{children}</section>
<main className="flex min-h-0 min-w-0 flex-1">
<section className="flex min-h-0 min-w-0 flex-1 flex-col">{children}</section>
<CitationRail citations={railCitations} />
</main>
</div>
Expand Down
Loading