Make rich editor full height
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -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={[
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user