mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 11:03:39 +00:00
Fix OpenAPI try it button justify (#3975)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@gitbook/react-openapi": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix Scalar Try it button justification
|
||||||
@@ -214,7 +214,7 @@ function OpenAPICodeSampleFooter(props: {
|
|||||||
const { specUrl } = context;
|
const { specUrl } = context;
|
||||||
const hideTryItPanel = data['x-hideTryItPanel'] || data.operation['x-hideTryItPanel'];
|
const hideTryItPanel = data['x-hideTryItPanel'] || data.operation['x-hideTryItPanel'];
|
||||||
const hasMultipleMediaTypes =
|
const hasMultipleMediaTypes =
|
||||||
renderers.length > 1 || renderers.some((renderer) => renderer.examples.length > 0);
|
renderers.length >= 2 || renderers.some((renderer) => renderer.examples.length >= 2);
|
||||||
|
|
||||||
// Check if any server has a host that can be used in an HTTP request
|
// Check if any server has a host that can be used in an HTTP request
|
||||||
const hasValidHost = hasValidServerHost(servers);
|
const hasValidHost = hasValidServerHost(servers);
|
||||||
|
|||||||
Reference in New Issue
Block a user