fix(webui): reserve navigation space above short-screen composers

This commit is contained in:
Xubin Ren committed 2026-10-04 10:40:09 +08:00
1 parent 4e77584eb7
commit d07fac940f
3 files changed
+16 -3

No files matched your search

@@ -700,7 +700,7 @@ export function PaneWorkbench({
/>
</header>
) : null}
<div className="relative min-h-0 flex-1 bg-background">
<div className="workbench-body relative min-h-0 flex-1 bg-background">
<div
ref={gridRef}
data-testid="pane-grid"
@@ -837,7 +837,7 @@ export function PaneWorkbench({
</div>
{chrome ? (
<footer className="shrink-0 bg-background px-3 pb-[calc(0.75rem+env(safe-area-inset-bottom))] sm:px-4">
<footer className="workbench-composer-footer shrink-0 bg-background px-3 pb-[calc(0.75rem+env(safe-area-inset-bottom))] sm:px-4">
<div
ref={setComposerPortalTarget}
data-testid="workbench-composer-host"
+11
View File
@@ -130,6 +130,17 @@
height: var(--app-viewport-height);
}
/* A landscape keyboard can leave less room than the composer needs. Keep
navigation reachable and scroll the composer instead of overlapping it. */
#root.visual-viewport .workbench-body {
min-height: 2.75rem;
}
#root.visual-viewport .workbench-composer-footer {
max-height: max(0px, calc(var(--app-viewport-height) - 2.75rem));
overflow-y: auto;
}
* {
scrollbar-color: var(--scrollbar-thumb) transparent;
scrollbar-width: thin;