Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReDoc broken sidebar in Chrome 80 #548

Closed
aklim007 opened this issue Feb 17, 2020 · 7 comments
Closed

ReDoc broken sidebar in Chrome 80 #548

aklim007 opened this issue Feb 17, 2020 · 7 comments

Comments

@aklim007
Copy link

This fixed in version 2.0.0-rc.23 ReDoc
Redocly/redoc#1167

@hnykda
Copy link

hnykda commented Feb 25, 2020

Is there a way how to use the fixed version via drf-yasg?

@danilocastelhano1
Copy link

I have the same problem too, i'm using the version of drf-yasg: 1.17.1 and still happens

@danilocastelhano1
Copy link

Is there a way how to use the fixed version via drf-yasg?

I fixed the bug: go to your html page and change this:

<script src="{% static 'drf-yasg/redoc/redoc.min.js' %}"></script>

to this:

<script src="https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js"></script>

@glibpushkov
Copy link

As I see there is unmerged pr for this issue #543

A bit elaborated solution above to fix my case when redoc is hosted somewhere:

  1. Create new app, let's say - 'drf_yasg_templates'
  2. Copy ...drf_yasg/templates/drf-yasg/redoc.html to the new app - drf_yasg_templates/templates/drf-yasg/redoc.html and replace
    <script src="{% static 'drf-yasg/redoc/redoc.min.js' %}"></script>
    with
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/bundles/redoc.standalone.js"></script>
  3. Add it to installed apps before 'drf_yasg'

@TauPan
Copy link

TauPan commented Apr 14, 2020

Since the fix for Redocly/redoc#1167 is in Redocly/redoc@1a2a7dd
it should be sufficient to add/inject

.menu-content {
    contain: unset !important;
}

Into your application somehow.

@ingbunga
Copy link

ingbunga commented Sep 4, 2020

In my case,
The problem is solved by putting the latest redoc.min.js file in the Django static folder.

@axnsan12
Copy link
Owner

Fixed in master now, updated to rc40, sorry for disappearing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants