Skip to content

Commit

Permalink
Fix margin top for description.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Jul 25, 2023
1 parent 7776887 commit ac9d492
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/api-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,17 @@ export default class ApiRequest extends LitElement {
</td>
${this.renderStyle === 'focused'
? html`
<td colspan="2">
<td colspan="2" style="vertical-align: top">
${param.description
? html`
<div class="param-description">
<div class="param-description" style="margin-top: 1rem;">
${unsafeHTML(marked(param.description))}
</div>`
: ''
}
${paramSchema.default || paramSchema.s || paramSchema.allowedValues || paramSchema.pattern
? html`
<div class="param-constraint">
<div class="param-constraint" style="margin-top: 1rem;">
${paramSchema.constraints.length ? html`<span style="font-weight:bold">Constraints: </span>${paramSchema.constraints.join(', ')}<br>` : ''}
${paramSchema.pattern ? html`
<div class="tooltip tooltip-replace" style="cursor: pointer; max-width: 100%; display: flex;">
Expand Down

0 comments on commit ac9d492

Please sign in to comment.