Skip to content

Commit

Permalink
Merge pull request #21 from codeforpakistan/pehchan-integration
Browse files Browse the repository at this point in the history
Fixed extra scrolling and alignment issues
  • Loading branch information
masnabinumeed authored Dec 5, 2024
2 parents e32ebf3 + cb7c916 commit 8564299
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 8564299

Please sign in to comment.