rohit-gohri / redocusaurus

OpenAPI for Docusaurus with Redoc
https://redocusaurus.vercel.app/
MIT License
629 stars 114 forks source link

v1.6.1 Compresses Mobile View #287

Closed shawnsull3 closed 1 year ago

shawnsull3 commented 1 year ago

Using Docusaurus v2.4.0 and Redocusaurus v1.6.1 the mobile view is compressed. The bug only appears when built. Running the site locally with yarn start the mobile view is fine.

Screenshot of the mobile view and the CSS causing it: image

It appears that the CSS that's causing the issue is overwriting the width: 100% from the index file.

This bug is affecting most of the sites found on the who's using Redocusaurus page as well as the Redocusaurus examples image image

Change log from v1.6.0 to v1.6.1: https://github.com/rohit-gohri/redocusaurus/compare/v1.6.0...v1.6.1

Reverting to Redocusaurus v1.6.0 fixes the issue.

rohit-gohri commented 1 year ago

Can confirm #276 introduced the regression. I'll revert it for now

rohit-gohri commented 1 year ago

Thanks for reporting, release 1.6.2 is out now

shawnsull3 commented 1 year ago

@rohit-gohri No problem - thanks for the fix!

I tried looking into why the changes in 1.6.1 were causing this regression but I couldn't quite figure it out.