Skip to content
Open
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
32 changes: 16 additions & 16 deletions frontend/components/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,24 @@ export default function Chat({ threadId, initialMessages }: ChatProps) {
});

return (
<div className="relative w-full">
<div className="w-full overflow-hidden h-screen">
<ChatSidebarTrigger />
<ThemeToggler />
<Button
onClick={handleToggleNavigator}
variant="outline"
size="icon"
className="fixed right-16 top-4 z-20"
aria-label={
isNavigatorVisible
? 'Hide message navigator'
: 'Show message navigator'
}
>
<MessageSquareMore className="h-5 w-5" />
</Button>
<main
className={`flex flex-col w-full max-w-3xl pt-10 pb-44 mx-auto transition-all duration-300 ease-in-out`}
className={`flex flex-col w-full mx-auto relative transition-all duration-300 ease-in-out max-h-screen h-screen`}
>
<Messages
threadId={threadId}
Expand All @@ -93,20 +107,6 @@ export default function Chat({ threadId, initialMessages }: ChatProps) {
stop={stop}
/>
</main>
<ThemeToggler />
<Button
onClick={handleToggleNavigator}
variant="outline"
size="icon"
className="fixed right-16 top-4 z-20"
aria-label={
isNavigatorVisible
? 'Hide message navigator'
: 'Show message navigator'
}
>
<MessageSquareMore className="h-5 w-5" />
</Button>

<ChatNavigator
threadId={threadId}
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ function PureChatInput({
};

return (
<div className="fixed bottom-0 w-full max-w-3xl">
<div className="absolute w-full px- max-w-3xl m-auto bottom-0 md:left-1/2 md:-translate-x-[51%] shadow-xl">
<div className="bg-secondary rounded-t-[20px] p-2 pb-0 w-full">
Comment on lines +135 to 136
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Broken Tailwind class px-

The class list contains px- without a value, producing no CSS and failing Tailwind’s parser in strict mode.
Replace with a concrete spacing value, e.g. px-4.

-<div className="absolute w-full px- max-w-3xl ...
+<div className="absolute w-full px-4 max-w-3xl ...
🤖 Prompt for AI Agents
In frontend/components/ChatInput.tsx around lines 135 to 136, the Tailwind class
list includes an incomplete class `px-` which is invalid and causes Tailwind's
parser to fail. Replace `px-` with a valid padding-x value such as `px-4` or
another appropriate spacing value to fix the issue.

<div className="relative">
<div className="relative border">
<div className="flex flex-col">
<div className="bg-secondary overflow-y-auto max-h-[300px]">
<Textarea
Expand Down
39 changes: 24 additions & 15 deletions frontend/components/Messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,30 @@ function PureMessages({
registerRef: (id: string, ref: HTMLDivElement | null) => void;
}) {
return (
<section className="flex flex-col space-y-12">
{messages.map((message, index) => (
<PreviewMessage
key={message.id}
threadId={threadId}
message={message}
isStreaming={status === 'streaming' && messages.length - 1 === index}
setMessages={setMessages}
reload={reload}
registerRef={registerRef}
stop={stop}
/>
))}
{status === 'submitted' && <MessageLoading />}
{error && <Error message={error.message} />}
<section
className="max-h-screen h-screen w-full xl:px-3 m-auto pb-18 md:pb-22 overflow-y-scroll"
style={{
height: 'calc(100vh - 10rem)',
}}
>
<div className="px-4 m-auto py-2 flex flex-col w-full md:max-w-xl lg:max-w-2xl border-y empty:hidden space-y-12">
Comment on lines +30 to +35
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Non-standard Tailwind spacing utilities

Classes pb-18 and md:pb-22 are outside Tailwind’s default spacing scale (0…96).
If these values are not added in the project theme, they will be purged and no CSS will be emitted, leaving the bottom padding missing on small devices—the very issue this PR tries to fix.

🤖 Prompt for AI Agents
In frontend/components/Messages.tsx around lines 30 to 35, the padding-bottom
classes pb-18 and md:pb-22 use non-standard Tailwind spacing values that may be
purged if not defined in the theme. Replace these with valid Tailwind spacing
utilities within the default scale (e.g., pb-16 or pb-20) or add custom spacing
values to the Tailwind config if needed, ensuring the bottom padding is applied
correctly on all devices.

{messages.map((message, index) => (
<PreviewMessage
key={message.id}
threadId={threadId}
message={message}
isStreaming={
status === 'streaming' && messages.length - 1 === index
}
setMessages={setMessages}
reload={reload}
registerRef={registerRef}
stop={stop}
/>
))}
{status === 'submitted' && <MessageLoading />}
{error && <Error message={error.message} />}
</div>
</section>
);
}
Expand Down
8 changes: 8 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ignoredBuiltDependencies:
- sharp
- unrs-resolver
- workerd
Comment on lines +1 to +4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

ignoredBuiltDependencies is not a recognised pnpm key

pnpm expects the key to be neverBuiltDependencies; using an unknown key means the listed packages (sharp, unrs-resolver, workerd) will still be built.
Rename the key to avoid a silent mis-configuration.

🤖 Prompt for AI Agents
In pnpm-workspace.yaml at lines 1 to 4, the key `ignoredBuiltDependencies` is
incorrect and should be renamed to `neverBuiltDependencies` to ensure pnpm
properly recognizes and skips building the listed packages. Replace
`ignoredBuiltDependencies` with `neverBuiltDependencies` to fix the
configuration.


onlyBuiltDependencies:
- '@tailwindcss/oxide'
- esbuild