Make rich editor full height

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-03-18 12:50:36 +04:00
parent b84eab4698
commit eede0b72f1
4 changed files with 25 additions and 21 deletions

View File

@@ -150,7 +150,7 @@ export function DocumentLayout(props: { queryRef: PreloadedQuery<DocumentLayoutQ
return (
<>
<div className="space-y-6">
<div className="flex flex-col gap-6 h-full">
<div className="flex justify-between items-center mb-4">
<Breadcrumb
items={[

View File

@@ -117,13 +117,11 @@ export function DocumentDescriptionPage(props: { queryRef: PreloadedQuery<Docume
);
return (
<div>
<RichEditor
content={currentVersion.content}
disabled={currentVersion.status !== "DRAFT"}
onChange={handleUpdate}
/>
{/* <Markdown content={currentVersion.content} /> */}
</div>
<RichEditor
className="flex-1"
content={currentVersion.content}
disabled={currentVersion.status !== "DRAFT"}
onChangeContent={handleUpdate}
/>
);
}