mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
UI: Test content-visibility CSS features
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-ui': patch
|
||||
---
|
||||
|
||||
Enable `content-visibility` CSS features
|
||||
@@ -263,8 +263,18 @@ function EditOnGitHub({
|
||||
export const DocsBody = forwardRef<
|
||||
HTMLDivElement,
|
||||
HTMLAttributes<HTMLDivElement>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<div ref={ref} className={cn('prose', className)} {...props} />
|
||||
>((props, ref) => (
|
||||
<div
|
||||
ref={ref}
|
||||
{...props}
|
||||
className={cn('prose contain-content', props.className)}
|
||||
style={
|
||||
{
|
||||
contentVisibility: 'auto',
|
||||
...props.style,
|
||||
} as object
|
||||
}
|
||||
/>
|
||||
));
|
||||
|
||||
DocsBody.displayName = 'DocsBody';
|
||||
|
||||
Reference in New Issue
Block a user