Skip to content

Commit e122b03

Browse files
committed
added css-wrap for many response status code
1 parent 46d449a commit e122b03

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/api-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ export default class ApiRequest extends LitElement {
197197

198198
/* eslint-disable indent */
199199
inputParametersTemplate(paramType) {
200-
let title = '';
201200
const filteredParams = this.parameters ? this.parameters.filter((param) => param.in === paramType) : [];
202201
if (filteredParams.length === 0) {
203202
return '';
204203
}
204+
let title = '';
205205
if (paramType === 'path') {
206206
title = 'PATH PARAMETERS';
207207
} else if (paramType === 'query') {

src/components/api-response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default class ApiResponse extends LitElement {
135135
}
136136
return html`
137137
${Object.keys(this.responses).length > 1
138-
? html`<div class='row'>
138+
? html`<div class='row' style='flex-wrap:wrap'>
139139
${Object.keys(this.responses).map((respStatus) => html`
140140
${respStatus === '$$ref' // Swagger-Client parser creates '$$ref' object if JSON references are used to create responses - this should be ignored
141141
? ''

src/rapidoc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,10 @@ export default class RapiDoc extends LitElement {
580580
this.requestUpdate();
581581
if (this.renderStyle === 'read' || this.renderStyle === 'focused') {
582582
// Remove the previous active state from navbar
583-
const oldNavEl = this.shadowRoot.querySelector('.nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active');
584-
if (oldNavEl) {
585-
oldNavEl.classList.remove('active');
586-
}
583+
const oldNavEl = this.shadowRoot.querySelector('.nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active');
584+
if (oldNavEl) {
585+
oldNavEl.classList.remove('active');
586+
}
587587
}
588588
const spec = await ProcessSpec(
589589
specUrl,

0 commit comments

Comments
 (0)