Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(modals): correct text input height in issue creation dialog (#2434)

ayakabotda03c832512a
diff --git a/packages/views/editor/content-editor.css b/packages/views/editor/content-editor.css
index d5f41bb48a..5a0c7c57fa 100644
--- a/packages/views/editor/content-editor.css
+++ b/packages/views/editor/content-editor.css
@@ -28,7 +28,6 @@
.rich-text-editor.ProseMirror {
color: var(--foreground);
caret-color: var(--foreground);
- min-height: 100%;
}
.rich-text-editor.ProseMirror:focus {
diff --git a/packages/views/editor/content-editor.tsx b/packages/views/editor/content-editor.tsx
index c7eae59917..8fe6cb0299 100644
--- a/packages/views/editor/content-editor.tsx
+++ b/packages/views/editor/content-editor.tsx
@@ -211,7 +211,7 @@ const ContentEditor = forwardRef<ContentEditorRef, ContentEditorProps>(
},
},
attributes: {
- class: cn("rich-text-editor text-sm outline-none", className),
+ class: cn("flex-1 rich-text-editor text-sm outline-none", className),
},
},
});
@@ -272,10 +272,10 @@ const ContentEditor = forwardRef<ContentEditorRef, ContentEditorProps>(
<AttachmentDownloadProvider attachments={attachments}>
<div
ref={wrapperRef}
- className="relative flex min-h-full flex-col"
+ className="relative flex flex-1 min-h-full flex-col"
onMouseDown={handleContainerMouseDown}
>
- <EditorContent className="flex-1 min-h-full" editor={editor} />
+ <EditorContent className="flex flex-1 flex-col" editor={editor} />
{showBubbleMenu && (
<EditorBubbleMenu editor={editor} currentIssueId={currentIssueId} />
)}
diff --git a/packages/views/modals/create-issue.tsx b/packages/views/modals/create-issue.tsx
index 29b75e5546..8d57f13dd6 100644
--- a/packages/views/modals/create-issue.tsx
+++ b/packages/views/modals/create-issue.tsx
@@ -357,7 +357,7 @@ export function ManualCreatePanel({
</div>
{/* Description — takes remaining space */}
- <div {...descDropZoneProps} className="relative flex-1 min-h-0 overflow-y-auto px-5">
+ <div {...descDropZoneProps} className="relative flex flex-1 min-h-0 overflow-y-auto px-5">
<ContentEditor
ref={descEditorRef}
defaultValue={draft.description}
diff --git a/packages/views/modals/quick-create-issue.tsx b/packages/views/modals/quick-create-issue.tsx
index c830ca7bc0..8a1a101f5d 100644
--- a/packages/views/modals/quick-create-issue.tsx
+++ b/packages/views/modals/quick-create-issue.tsx
@@ -415,7 +415,7 @@ export function AgentCreatePanel({
editor unbounded and pushed the modal past the viewport. */}
<div
{...dropZoneProps}
- className="relative px-5 pb-3 flex-1 min-h-[140px] overflow-y-auto"
+ className="relative px-5 pb-3 flex flex-1 min-h-[140px] overflow-y-auto"
>
<ContentEditor
ref={editorRef}