diff --git a/CHANGELOG.md b/CHANGELOG.md index 376337b9..e4cc254c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ This package follows standard semvar, `..`. No breaking cha * The `table` view is now the default as the `tree` view becomes deprecated. To display the `tree` view, use the `tree` attribute on the openapi-explorer html element. * Handle invalid JSON parsing in request bodies * Fix the request body that keeps changing preventing editing of it. +* Set min height on syntax rendering to be 2rem, so that the copy button always fully shows correctly. ## 2.1 * Add `x-locale` vendor extension to specify the locale of the spec. diff --git a/src/components/api-request.js b/src/components/api-request.js index e1edffa9..493ecf6c 100644 --- a/src/components/api-request.js +++ b/src/components/api-request.js @@ -635,7 +635,7 @@ export default class ApiRequest extends LitElement {
- +
`; } diff --git a/src/components/syntax-highlighter.js b/src/components/syntax-highlighter.js index 9f0b2aa0..c6018289 100644 --- a/src/components/syntax-highlighter.js +++ b/src/components/syntax-highlighter.js @@ -124,7 +124,7 @@ class SyntaxHighlighter extends LitElement { * @returns Content */ renderCopyWrapper(content) { - return html`
+ return html`