Skip to content

Commit

Permalink
UI: fix page styles
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Jan 4, 2025
1 parent 698b385 commit a557bb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-taxis-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'fumadocs-ui': patch
---

revert `contain`
14 changes: 3 additions & 11 deletions packages/ui/src/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,9 @@ export const DocsBody = forwardRef<
HTMLDivElement,
HTMLAttributes<HTMLDivElement>
>((props, ref) => (
<div
ref={ref}
{...props}
className={cn('prose contain-content', props.className)}
style={
{
contentVisibility: 'auto',
...props.style,
} as object
}
/>
<div ref={ref} {...props} className={cn('prose', props.className)}>
{props.children}
</div>
));

DocsBody.displayName = 'DocsBody';
Expand Down

0 comments on commit a557bb4

Please sign in to comment.