From 44079031cf4973775cc91f20cf805f0b88b13bad Mon Sep 17 00:00:00 2001 From: Zubair Ibn Zamir Date: Wed, 24 Dec 2025 16:36:22 +0600 Subject: [PATCH] docs: fix prevent horizontal scroll in Note and Warning components on mobile Add min-w-0 and flex-1 to the content div in Note and Warning components to allow proper flex shrinking on mobile devices. This prevents horizontal overflow when content is wider than the viewport. --- docs/src/components/mdx.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/components/mdx.tsx b/docs/src/components/mdx.tsx index c10e9fcb58..012a37da03 100644 --- a/docs/src/components/mdx.tsx +++ b/docs/src/components/mdx.tsx @@ -82,7 +82,7 @@ export function Note({ children }: { children: React.ReactNode }) { return (
-
+
{children}
@@ -93,7 +93,7 @@ export function Warning({ children }: { children: React.ReactNode }) { return (
-
+
{children}