Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(web): restore mobile keyboard offset and safe-area padding for chat input

Gener6641e7aadae0
diff --git a/src/web/src/components/agent-chat/agent-chat-view.tsx b/src/web/src/components/agent-chat/agent-chat-view.tsx
index 48c1e2dc7..f9e11b55a 100644
--- a/src/web/src/components/agent-chat/agent-chat-view.tsx
+++ b/src/web/src/components/agent-chat/agent-chat-view.tsx
@@ -581,7 +581,7 @@ export function AgentChatView({
{/* Presence line + input — mirror the real layout exactly so nothing
shifts on load: presence row (h-5 + mb-2) above, then the composer
row of [overflow button][pill][symmetric spacer]. */}
- <div className="relative z-10 px-3 md:px-5 pt-3 pb-5 md:pb-6">
+ <div data-keyboard-offset className="relative z-10 px-3 md:px-5 pt-3 pb-[max(1.25rem,env(safe-area-inset-bottom))] md:pb-6">
<div className="mx-auto max-w-3xl">
<div className="h-5 px-1 mb-2 flex items-center">
<Skeleton className="h-3.5 w-28 rounded" />
@@ -800,7 +800,7 @@ export function AgentChatView({
</div>
{/* Input */}
- <div className="relative z-10 px-3 md:px-5 pt-3 pb-5 md:pb-6">
+ <div data-keyboard-offset className="relative z-10 px-3 md:px-5 pt-3 pb-[max(1.25rem,env(safe-area-inset-bottom))] md:pb-6">
<div className="mx-auto max-w-3xl relative">
{/* Social presence line — "{Name} is typing…" while this conversation
has a live task (dispatched / queued / running), else nothing. */}