Skip to content

Commit

Permalink
Merge pull request miurla#91 from miurla/update-panel
Browse files Browse the repository at this point in the history
Refactor form position in ChatPanel component
  • Loading branch information
miurla committed Apr 27, 2024
2 parents d36267f + affbb25 commit 2ab842e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions components/chat-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,12 @@ export function ChatPanel() {
)
}

// Condition 1 and 3: If there are no messages or the button is pressed, display the form
const formPositionClass =
messages.length === 0
? 'fixed bottom-8 left-0 right-0 top-10 mx-auto h-screen flex flex-col items-center justify-center'
: 'fixed bottom-8-ml-6'
return (
<div className={formPositionClass}>
{/* <IconKuroko className="w-6 h-6 mb-4" /> */}
<div
className={
'fixed bottom-8 left-0 right-0 top-10 mx-auto h-screen flex flex-col items-center justify-center'
}
>
<form onSubmit={handleSubmit} className="max-w-2xl w-full px-6">
<div className="relative flex items-center w-full">
<Input
Expand Down

0 comments on commit 2ab842e

Please sign in to comment.