Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improve error message display for rapidoc-mini
  • Loading branch information
mrin9 committed May 2, 2021
1 parent 52a9eee commit d99ceba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/templates/main-body-template.js
Expand Up @@ -30,14 +30,12 @@ export default function mainBodyTemplate(isMini = false, showExpandCollapse = tr
};
/* eslint-disable indent */
if (this.resolvedSpec.specLoadError) {
/*
if (isMini) {
return html`
${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}
<div style="border:1px solid var(--border-color); height:42px; padding:5px; font-size:var(--font-size-small); color:var(--red); font-family:var(--font-mono)"> ${this.resolvedSpec.info.description} </div>
<div style="display:flex; align-items:center; border:1px dashed var(--border-color); height:42px; padding:5px; font-size:var(--font-size-small); color:var(--red); font-family:var(--font-mono)"> ${this.resolvedSpec.info.description} </div>
`;
}
*/
return html`
${this.theme === 'dark' ? SetTheme.call(this, 'dark', newTheme) : SetTheme.call(this, 'light', newTheme)}
<!-- Header -->
Expand Down

0 comments on commit d99ceba

Please sign in to comment.