Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix(frontend): keep composer pinned at the bottom on narrow viewports (#765)

Hiep Le24a39212a863
diff --git a/src/components/features/chat/chat-interface.tsx b/src/components/features/chat/chat-interface.tsx
index 764c21773d..5d56feddbf 100644
--- a/src/components/features/chat/chat-interface.tsx
+++ b/src/components/features/chat/chat-interface.tsx
@@ -460,7 +460,7 @@ export function ChatInterface() {
maybeLoadOlder(e.currentTarget);
}}
onWheel={handleWheelForPagination}
- className="custom-scrollbar-always flex grow flex-col gap-2 overflow-x-hidden overflow-y-auto px-0 pt-4 pb-8 md:px-4"
+ className="custom-scrollbar-always flex min-h-0 grow flex-col gap-2 overflow-x-hidden overflow-y-auto px-0 pt-4 pb-8 md:px-4"
>
{isChatLoading && isReturningToConversation && (
<ChatMessagesSkeleton />
@@ -515,7 +515,7 @@ export function ChatInterface() {
<PendingUserMessages />
</div>
- <div className="flex flex-col gap-[6px]">
+ <div className="flex shrink-0 flex-col gap-[6px]">
<BtwMessages conversationId={conversationId} />
{errorMessage && (
<ErrorMessageBanner
diff --git a/src/components/features/conversation/conversation-main/chat-interface-wrapper.tsx b/src/components/features/conversation/conversation-main/chat-interface-wrapper.tsx
index df8c1e5ebe..c88bf1c41d 100644
--- a/src/components/features/conversation/conversation-main/chat-interface-wrapper.tsx
+++ b/src/components/features/conversation/conversation-main/chat-interface-wrapper.tsx
@@ -9,7 +9,7 @@ export function ChatInterfaceWrapper({
}: ChatInterfaceWrapperProps) {
return (
<div className="flex justify-center w-full h-full">
- <div className="w-full min-w-0 max-w-[800px] transition-all duration-300 ease-in-out">
+ <div className="w-full min-w-0 max-w-[800px] h-full flex flex-col min-h-0 transition-all duration-300 ease-in-out">
<ChatInterface />
</div>
</div>
diff --git a/src/components/features/conversation/conversation-main/conversation-main.tsx b/src/components/features/conversation/conversation-main/conversation-main.tsx
index b20fbbe3ea..7cc0c9f382 100644
--- a/src/components/features/conversation/conversation-main/conversation-main.tsx
+++ b/src/components/features/conversation/conversation-main/conversation-main.tsx
@@ -43,7 +43,7 @@ export function ConversationMain() {
<div
className={cn(
isMobile
- ? "relative flex-1 flex flex-col"
+ ? "relative min-h-0 flex-1 flex flex-col"
: "h-full flex flex-col overflow-hidden",
)}
>