redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Unexpected line break between HTTP status code, reason

Open svix-jplatte opened this issue 1 year ago • 2 comments

Describe the bug

Somewhere between v2.0.0-rc.75 and v2.1.5 (I just attempted an upgrade), redoc started adding a line break between the numerical HTTP status code and the description for the response, even though plenty of space is available.

Expected behavior

No extra line break when plenty of space is available.

Minimal reproducible OpenAPI snippet(if possible)

"paths": {
        "/": {
            "get": {
                "description": "Operation description.",
                "operationId": "my.operation",
                "responses": {
                    "200": {
                        "content": {},
                        "description": "OK"
                    },
                    "400": {
                        "content": {},
                        "description": "Bad request"
                    }
                }
            }
        }
    }
}

Screenshots

before: before

after (looks like I screenshotted a different route but it's the same everywhere): after

svix-jplatte avatar Sep 05 '24 18:09 svix-jplatte

Is this issue solved? If not I can handle with that

MRmlik12 avatar Oct 01 '24 20:10 MRmlik12

I guess you should test it yourself with the latest git version once you have a working dev setup, but the version from the issue report is still the latest published release as far as I can tell.

svix-jplatte avatar Oct 01 '24 22:10 svix-jplatte

It is reproducible. PRs are welcome. Thanks

AlexVarchuk avatar Dec 30 '24 18:12 AlexVarchuk