Skip to content

Commit

Permalink
fix(editor): make scrollable view properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonman225 authored and thesophiaxu committed Mar 27, 2022
1 parent 2ba9a59 commit d0ee8ce
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ export function ParentsAndReferences({ data }: any) {
}

function NoteViewPageWrapper({ children, isRoot }: any) {
return !isRoot ? children : <div style={{ height: '100%', width: '100%', padding: '1rem 2rem' }}>{children}</div>;
return !isRoot ? (
children
) : (
<div style={{ height: '100%', width: '100%', padding: '1rem 2rem', overflow: 'auto' }}>{children}</div>
);
}

/** Renders both page title and content of each note block. */
Expand Down

0 comments on commit d0ee8ce

Please sign in to comment.