rapi-doc / RapiDoc

RapiDoc -WebComponent for OpenAPI Spec
https://rapidocweb.com
MIT License
1.71k stars 285 forks source link

Response example rendered incorrectly #2

Closed jakul closed 5 years ago

jakul commented 5 years ago

Hi,

Firstly, thanks for making this repo! It does everything I want from a Swagger viewer, all in a lightweight package ❤️

That said, I've found a small bug in the example response section, where the content from one example flows on top of the next one.

captura de tela 2019-02-15 as 09 21 55

Possible solution

There is a flex: 1 applied to the element. If I remove that, then the example renders much better:

captura de tela 2019-02-15 as 09 22 20

mrin9 commented 5 years ago

I am unable to recreate this issue on my end, (tested on chrome, firefox and safari) Can you share the following info

If you know a possible solution then I will be more than happy to take a PR, or show me the element using chrome's dev-tool screenshot, where I need to remove flex:1

jakul commented 5 years ago

The cause of this is the same as in my other issue. If I change the opening tag from <html> to <!doctype html> then the examples render correctly.