Skip to content
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
2 changes: 1 addition & 1 deletion apps/mobile-web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content" />
<meta name="theme-color" content="#141418" media="(prefers-color-scheme: dark)" />
<meta name="theme-color" content="#f7f7fa" media="(prefers-color-scheme: light)" />
<meta name="description" content="Mobile companion for agent-workbench — touch-optimized chat + panels" />
Expand Down
9 changes: 9 additions & 0 deletions apps/mobile-web/src/components/PromptInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,16 @@ export function PromptInput(): JSX.Element {

const hasText = () => inputText().trim().length > 0;

function handleFocus(): void {
// Small delay to let the keyboard open and layout settle
setTimeout(() => {
textareaRef?.scrollIntoView({ behavior: "smooth", block: "nearest" });
}, 300);
}

return (
<div
data-composer
class="flex-shrink-0 safe-bottom"
style="padding: 8px 10px calc(8px + var(--safe-bottom)); border-top: 1px solid var(--border); background: var(--surface);"
>
Expand Down Expand Up @@ -136,6 +144,7 @@ export function PromptInput(): JSX.Element {
placeholder="Type a message..."
rows={1}
value={inputText()}
onFocus={handleFocus}
onInput={(e) => {
setInputText((e.target as HTMLTextAreaElement).value);
queueMicrotask(() => autoResize());
Expand Down
10 changes: 10 additions & 0 deletions apps/mobile-web/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,16 @@ textarea {
height: 100dvh;
}

/* When iOS virtual keyboard is open — use visualViewport height */
html.keyboard-open .h-dvh {
height: var(--vh, 100dvh);
}

/* Ensure the composer has bottom room when keyboard is open */
html.keyboard-open [data-composer] {
padding-bottom: max(var(--safe-bottom), var(--kb-height, 0px));
}

/* ── Backdrop-filter fallback ──────────────────── */
/* Safari <15 / low-power mode may not support backdrop-filter.
The .frost class is applied by <TopBar> and <TabBar>.
Expand Down
11 changes: 11 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"installCommand": "bun install",
"buildCommand": "bun run build",
"outputDirectory": "apps/mobile-web/dist",
"framework": "vite",
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }],
"github": {
"silent": true
}
}
Loading