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

Response Headers Title is Rendered Below Actual Headers #509

Closed
tbrunia opened this issue May 27, 2018 · 2 comments
Closed

Response Headers Title is Rendered Below Actual Headers #509

tbrunia opened this issue May 27, 2018 · 2 comments

Comments

@tbrunia
Copy link

tbrunia commented May 27, 2018

image

I'm using the React component version: 2.0.0-alpha.20. The response header title is appearing below the response headers.

I think my Open API response is well structured...

...
        "responses": {
          "204": {
            "description": "Successful operation",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                },
                "description": "A url pointing to the location of the created or updated thing. Can be used to retrieve the thing."
              }
            },
...
          }
        },
...

Live example:
https://beta.docs.xilution.com/elements/data-accessor
Select Things > Create or Update a Thing > 204 Successful operation

@RomanHotsiy
Copy link
Member

RomanHotsiy commented May 28, 2018

It seems to be caused by https://stackpath.bootstrapcdn.com/bootstrap/scss/_reboot.scss used in your site. It sets css caption-side: bottom; for all the tables (I've never known about this css rule before 😯)

I will add fix for this into ReDoc but a quick workaround would be to add the following css to your site css:

.redoc-wrap table caption {
  caption-side: top;
}

@tbrunia
Copy link
Author

tbrunia commented May 28, 2018

Thanks!

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

2 participants