Skip to content

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

Python

fix: inset the composer send control so the circle clears the corner

Cursor Agentaec938050de8
diff --git a/apps/native/components/primitives/PromptBar.tsx b/apps/native/components/primitives/PromptBar.tsx
index 635c2fd6..4f5e0515 100644
--- a/apps/native/components/primitives/PromptBar.tsx
+++ b/apps/native/components/primitives/PromptBar.tsx
@@ -415,7 +415,7 @@ export default function PromptBar({
className={`relative isolate flex flex-col overflow-hidden border ${layout.glass} transition-[border-color,border-radius] duration-150 focus-within:border-line-strong ${
dragging ? "border-accent-ink" : "border-line"
} ${
- tall ? "gap-2.5 p-3.5" : "gap-1.5 p-1.5"
+ tall ? "gap-2.5 p-3.5" : "gap-1.5 pt-1.5 pl-1.5 pr-2.5 pb-2.5"
} ${
"rounded-composer"
}`}
@@ -576,10 +576,11 @@ export default function PromptBar({
{/* send — circular; while a turn runs it morphs into stop */}
<button
type="button"
+ data-composer-send
aria-label={showStop ? "Stop" : "Send"}
disabled={showStop ? !onStop : !canSend}
onClick={showStop ? onStop : send}
- className={`flex size-7 shrink-0 items-center justify-center rounded-full disabled:opacity-30 disabled:cursor-not-allowed transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.94] ${wide ? "col-start-5 row-start-2" : "col-start-5 row-start-1"}`}
+ className={`flex size-7 shrink-0 items-center justify-center justify-self-end rounded-full disabled:opacity-30 disabled:cursor-not-allowed transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.94] ${wide ? "col-start-5 row-start-2" : "col-start-5 row-start-1"}`}
style={{
background: showStop || canSend ? "var(--ink)" : "var(--line-strong)",
color: showStop || canSend ? "var(--surface)" : "var(--ink-2)",
diff --git a/apps/native/lib/composer-radius.test.ts b/apps/native/lib/composer-radius.test.ts
index 7dfb19cf..a5b70db4 100644
--- a/apps/native/lib/composer-radius.test.ts
+++ b/apps/native/lib/composer-radius.test.ts
@@ -6,6 +6,10 @@ test("composer and user bubbles use design tokens, not a short-text pill", () =>
const composer = readFileSync(path.join(import.meta.dir, "../components/primitives/PromptBar.tsx"), "utf8");
const bubbles = readFileSync(path.join(import.meta.dir, "../components/site/ChatBubbles.tsx"), "utf8");
expect(composer).toContain("rounded-composer");
+ expect(composer).toContain("pr-2.5 pb-2.5");
+ expect(composer).toContain("data-composer-send");
+ expect(composer).toMatch(/data-composer-send[\s\S]*rounded-full/);
+ expect(composer).toContain("<rect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"2.5\" />");
expect(composer).not.toContain('pill ? (attachments.length > 0 || wide ? "rounded-composer" : "rounded-full")');
expect(bubbles).toContain("data-message-bubble");
expect(bubbles).toContain("rounded-card");