From 46342ca1a4e87c1b17802964caa582bcdd0e7ac3 Mon Sep 17 00:00:00 2001 From: Charis <26616127+charislam@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:36:16 -0400 Subject: [PATCH] fix: mobile width for ref docs (#22476) --- apps/docs/layouts/ref/RefSubLayout.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/docs/layouts/ref/RefSubLayout.tsx b/apps/docs/layouts/ref/RefSubLayout.tsx index 2259a96273a..a14c56139be 100644 --- a/apps/docs/layouts/ref/RefSubLayout.tsx +++ b/apps/docs/layouts/ref/RefSubLayout.tsx @@ -134,12 +134,20 @@ const StickyHeader: FC = ({ icon, ...props }) => { } const Details: FC> = (props) => { - return
{props.children}
+ /** + * `min-w` is necessary because these are used as grid children, which have + * default `min-w-auto` + */ + return
{props.children}
} const Examples: FC> = (props) => { + /** + * `min-w` is necessary because these are used as grid children, which have + * default `min-w-auto` + */ return ( -
+
{props.children}
)