Skip to content

Commit 80ced14

Browse files
committed
fix: edit scroll
1 parent 2b25f36 commit 80ced14

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/Foundary/document-edit.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function DocumentEdit({
151151
initial={{ opacity: 0, y: 20 }}
152152
animate={{ opacity: 1, y: 0 }}
153153
transition={{ duration: 0.3 }}
154-
className="h-full flex flex-col"
154+
className="h-screen flex flex-col"
155155
>
156156
{/* Header */}
157157
<div className="border-b border-border bg-card p-8 pb-6">
@@ -231,9 +231,9 @@ export function DocumentEdit({
231231
opacity: isMetadataExpanded ? 1 : 0
232232
}}
233233
transition={{ duration: 0.2, ease: 'easeInOut' }}
234-
className="overflow-hidden"
234+
className="overflow-hidden h-full max-h-full"
235235
>
236-
<div className="pt-4 border-t border-border mt-4">
236+
<div className="pt-4 border-t border-border mt-4 h-screen max-h-full flex">
237237
<div className="flex items-center justify-between mb-3">
238238
<h3 className="text-sm font-semibold text-foreground flex items-center gap-2">
239239
<Info className="h-4 w-4" />
@@ -349,8 +349,8 @@ export function DocumentEdit({
349349
</div>
350350

351351
{/* Content Editor */}
352-
<div className="flex-1 ">
353-
<div className="p-8 h-full">
352+
<div className="flex-1 overflow-hidden">
353+
<div className="p-8 h-full max-h-full overflow-auto">
354354
{/* <label className="block text-sm font-medium text-foreground mb-4">Content</label> */}
355355
{editedDocument.format === 'richText' ? (
356356
<RichText

0 commit comments

Comments
 (0)