Skip to content

Email for professionals and teams

fix: fill composer container with message input

Antonio Ivanovski0376b2b04e98
diff --git a/src/components/compose/rich-text-editor.tsx b/src/components/compose/rich-text-editor.tsx
index 305e765..1c1c447 100644
--- a/src/components/compose/rich-text-editor.tsx
+++ b/src/components/compose/rich-text-editor.tsx
@@ -185,7 +185,7 @@ export function RichTextEditor({
return (
<div className={cn("flex min-h-0 flex-1 flex-col", className)}>
<div className="sticky top-0 z-10 flex shrink-0 items-center gap-0.5 overflow-x-auto bg-white px-2 py-1 md:hidden">{formatButtons}</div>
- <div className="relative min-h-0 flex-1 overflow-y-auto">
+ <div className="relative flex min-h-0 flex-1 flex-col overflow-y-auto">
<div
ref={editorRef}
id={id}
@@ -201,12 +201,12 @@ export function RichTextEditor({
onKeyDown={onKeyDown}
className={cn(
"email-body max-w-none px-4 py-3 text-sm text-neutral-900 outline-none",
- "min-h-32 empty:before:pointer-events-none empty:before:text-neutral-400 empty:before:content-[attr(data-placeholder)]",
+ "min-h-32 grow shrink-0 empty:before:pointer-events-none empty:before:text-neutral-400 empty:before:content-[attr(data-placeholder)]",
disabled && "cursor-not-allowed opacity-60",
)}
/>
{quotedHtml && (
- <div className="px-4 pb-3">
+ <div className="shrink-0 px-4 pb-3">
<button
type="button"
onClick={() => setShowQuoted((open) => !open)}