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 fields overflows to dark box on default theme #867

Closed
1 task done
dfsmania opened this issue Jul 11, 2024 · 1 comment
Closed
1 task done

Response fields overflows to dark box on default theme #867

dfsmania opened this issue Jul 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dfsmania
Copy link
Contributor

Scribe version

4.37.1

PHP version

8.3.9

Framework

Laravel

Framework version

10.48.16

Scribe config

title => "My API"
static.output_path => "public/docs/api"
auth.enabled => true
auth.default => true
auth.name => "token"
auth.placeholder => "{YOUR_ACCESS_TOKEN}"
logo => "../../images/app-logo.png"
strategies.urlParameters => added Knuckles\Scribe\Extracting\Strategies\UrlParameters\GetFromLumenAPI
strategies.headers => added Knuckles\Scribe\Extracting\Strategies\Headers\GetFromRouteRules: removed [
    'override',
    [
        'Content-Type' => 'application/json',
        'Accept' => 'application/json',
    ],
]
strategies.responses => added Knuckles\Scribe\Extracting\Strategies\Responses\ResponseCalls: removed [
    'Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls',
    [
        'only' => [
            'GET *',
        ],
        'config' => [
            'app.debug' => false,
        ],
    ],
]

What happened?

I ran php artisan scribe:generate and the output documentation using the default theme presents an issue with the response fields, the text of the descriptions overflows to the dark-box zone. Check next image:

image

Using the inspector tool of the browser, I can see that other fields, like the body parameters are wrapped inside a div holding the next style:

margin-right: 50%

While the div that wraps those response fields are missing that extra style.

Docs

@shalvah
Copy link
Contributor

shalvah commented Aug 24, 2024

Thanks for investigating!

@shalvah shalvah closed this as completed Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants