Skip to content

Commit bd1e246

Browse files
authored
fix(canvas): cap CONTEXT.md description textarea height (#3558)
## Problem When creating a channel's CONTEXT.md with an agent, the description textarea in the "Create your context.md" dialog grows without limit as you type. Because quill's `Textarea` auto-grows to fit its content (`field-sizing: content`) and has no `max-height`, a long enough description expands the modal past the viewport and pushes the footer's **Create** button off-screen — leaving ⌘/Ctrl+Enter as the only way to submit (which most users won't discover). **Why:** reported by a user hitting this in the Channels (project-bluebird) flow — the submit button becomes unclickable for longer descriptions. ## Changes - Cap the description `Textarea` at `40vh` with `overflow-y-auto` so it scrolls internally instead of expanding the dialog. The field is shared by both the describe-mode dialog and the create-mode step-two dialog, so both are fixed. ## How did you test this? - Manual reasoning only — I don't have the app running in this environment. The change is a `className` on a component that already forwards `className` to the underlying quill primitive; no behavior beyond height/overflow changes. ## Automatic notifications - [ ] Publish to changelog? - [ ] Alert Sales and Marketing teams? --- *Created with [PostHog Code](https://posthog.com/code?ref=pr)*
1 parent a750d39 commit bd1e246

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/ui/src/features/canvas/components/CreateChannelModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export function CreateChannelModal({
196196
id="context-description"
197197
autoFocus
198198
rows={4}
199+
className="max-h-[40vh] overflow-y-auto"
199200
value={description}
200201
placeholder={DESCRIPTION_PLACEHOLDER}
201202
disabled={busy}

0 commit comments

Comments
 (0)