From 90f1e896a68b47a53e61c2613bf03f305fe45146 Mon Sep 17 00:00:00 2001 From: Shubham Reddy Date: Thu, 29 Oct 2026 14:34:02 +0530 Subject: [PATCH] fix(theme-classic): reset markdown image width to prevent distortion (AI-assisted) Add `width: auto` alongside `height: auto` in `MDXComponents/Img/styles.module.css` to ensure images with generated dimensions scale proportionally. Fixes #9462 --- .../src/theme/MDXComponents/Img/styles.module.css | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/docusaurus-theme-classic/src/theme/MDXComponents/Img/styles.module.css b/packages/docusaurus-theme-classic/src/theme/MDXComponents/Img/styles.module.css index 76644d485ec3..60df7b74135a 100644 --- a/packages/docusaurus-theme-classic/src/theme/MDXComponents/Img/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/MDXComponents/Img/styles.module.css @@ -7,4 +7,5 @@ .img { height: auto; + width: auto; }