-
-
Notifications
You must be signed in to change notification settings - Fork 95
Fix: Improve UI responsiveness on small devices #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-standard Tailwind spacing utilities Classes 🤖 Prompt for AI Agents |
||
| {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> | ||
| ); | ||
| } | ||
|
|
||
| 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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion
pnpm expects the key to be 🤖 Prompt for AI Agents |
||
|
|
||
| onlyBuiltDependencies: | ||
| - '@tailwindcss/oxide' | ||
| - esbuild | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.🤖 Prompt for AI Agents