fix: mobile width for ref docs (#22476)

This commit is contained in:
Charis authored and GitHub committed 2024-04-04 13:36:16 -04:00
1 parent 1d52dfacde
commit 46342ca1a4
1 file changed
+10 -2
+10 -2
View File
@@ -134,12 +134,20 @@ const StickyHeader: FC<StickyHeader> = ({ icon, ...props }) => {
}
const Details: FC<PropsWithChildren<ISectionDetails>> = (props) => {
return <div className="relative w-full">{props.children}</div>
/**
* `min-w` is necessary because these are used as grid children, which have
* default `min-w-auto`
*/
return <div className="relative w-full min-w-full">{props.children}</div>
}
const Examples: FC<PropsWithChildren<ISectionExamples>> = (props) => {
/**
* `min-w` is necessary because these are used as grid children, which have
* default `min-w-auto`
*/
return (
<div className="w-full">
<div className="w-full min-w-full">
<div className="sticky top-24">{props.children}</div>
</div>
)