Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Keep the stacked split composer at the 32px radius

Rach12a060e78cc2
diff --git a/apps/native/components/primitives/PromptBar.module.css b/apps/native/components/primitives/PromptBar.module.css
index 6798ebd0..1469cd2f 100644
--- a/apps/native/components/primitives/PromptBar.module.css
+++ b/apps/native/components/primitives/PromptBar.module.css
@@ -38,8 +38,12 @@
}
/* Split panes can be narrow even on a large display. Keep settings legible
- on their own row and reserve separate space for attachment/send actions. */
+ on their own row and reserve separate space for attachment/send actions.
+ stacked shells use the composer radius — rounded-full on 3 rows is a balloon. */
@container (max-width: 420px) {
+ .glass {
+ border-radius: var(--radius-composer);
+ }
.controls {
grid-template-columns: 28px minmax(0, 1fr) 0px 28px 28px;
}
diff --git a/apps/native/components/primitives/useComposerSize.ts b/apps/native/components/primitives/useComposerSize.ts
index 002c57a3..b6c30ca7 100644
--- a/apps/native/components/primitives/useComposerSize.ts
+++ b/apps/native/components/primitives/useComposerSize.ts
@@ -16,7 +16,10 @@ export function useComposerSize({ inputRef, controlsRef, measureRef, modelRef, d
const modelWidth = model.offsetWidth + (label ? label.scrollWidth - label.clientWidth : 0);
const effortWidth = model.nextElementSibling instanceof HTMLElement ? model.nextElementSibling.offsetWidth : 0;
const inlineWidth = controls.clientWidth - 28 * 3 - modelWidth - effortWidth - 4 * 4;
- const fullWidth = draft.includes("\n") || measure.offsetWidth + 8 > inlineWidth;
+ // Match PromptBar.module.css @container (max-width: 420px). Below that
+ // the grid stacks; rounded-full on a stacked shell becomes a balloon.
+ const stacked = controls.clientWidth <= 420;
+ const fullWidth = stacked || draft.includes("\n") || measure.offsetWidth + 8 > inlineWidth;
if (fullWidth !== expanded) setExpanded(fullWidth);
input.style.height = "0px";
const height = input.scrollHeight;