scribe icon indicating copy to clipboard operation
scribe copied to clipboard

Large Request breaks Elements theme

Open rmundel opened this issue 2 years ago • 1 comments

Scribe version

4.34.0

PHP version

8.1

Framework

Laravel

Framework version

9.52.16

Scribe config

title => "WebService"
base_url => "https://localhost:3000"
theme => "elements"
static.output_path => "docs/"
laravel.add_routes => false
try_it_out.enabled => false
auth.enabled => true
auth.default => true
auth.name => "token"
auth.placeholder => "{YOU_API_TOKEN}"
logo => "https://localhost:8000/statics/app-logo-128x128.png"
last_updated => "Last update: {date:d/m/Y H:i:s}"
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 *',
        ],
    ],
]

What happened?

The Request sample block in the Elements theme breaks when using large Request sample: image

The Response sample works fine, applying the scroll bar correctly: image

Docs

rmundel avatar Mar 21 '24 18:03 rmundel

Thanks for the report. I can't promise any timeline for this fix, so I recommend switching type in your config to the external_static or external_laravel, as that will use the stylesheets directly from the Stoplight Elements website.

shalvah avatar Mar 26 '24 20:03 shalvah