Skip to content
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

Fixed extra scrolling and alignment issues #21

Merged
merged 2 commits into from
Dec 5, 2024
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
8 changes: 4 additions & 4 deletions app/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default function ChatPage() {
}

return (
<div className="flex h-screen w-full touch-manipulation flex-col overflow-hidden lg:flex-row">
<div className="flex w-full touch-manipulation flex-col overflow-hidden lg:flex-row">
<MessageThreadsSidebar
isOpen={isSidebarOpen}
onClose={() => setIsSidebarOpen(false)}
Expand All @@ -198,8 +198,8 @@ export default function ChatPage() {
</div>

{/* Messages container */}
<div className="min-h-0 flex-1 overflow-y-auto">
<div className="mx-auto flex max-w-2xl flex-col p-4">
<div className="flex min-h-0 flex-1 overflow-y-auto">
<div className="mx-auto flex max-w-2xl flex-col p-4 mt-auto">
{isClient && messages.map((message) => (
<ChatBubble
key={message.id}
Expand Down Expand Up @@ -261,7 +261,7 @@ export default function ChatPage() {
</div>

{/* Input - now will stay fixed at bottom */}
<div className="flex-none border-t bg-background p-4">
<div className="flex-none bg-background p-4 ">
<div className="mx-auto max-w-2xl">
<form
className="flex items-center gap-2"
Expand Down
2 changes: 1 addition & 1 deletion components/pehchan-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function PehchanLoginButton() {
return (
<Button
onClick={handleLogin}
className="flex items-center justify-center gap-2 rounded-md px-4 py-2 text-white transition-colors hover:bg-green-700"
className="flex items-center justify-center gap-2 rounded-md px-4 py-2 text-white transition-colors bg-green-600 hover:bg-green-700"
>
<Icons.whiteLogo />
Login with Pehchan
Expand Down
Loading