Skip to content

Commit 5104951

Browse files
committed
improved response header styling
1 parent 3926c57 commit 5104951

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/components/api-response.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ export default class ApiResponse extends LitElement {
6161
color:var(--light-fg);
6262
}
6363
.top-gap{margin-top:16px;}
64-
.descr-text{
65-
color:var(--light-fg);
66-
font-family:var(--font-regular);
67-
}
6864
.example-panel{
6965
font-size:var(--font-size-small);
7066
margin:0;
@@ -179,13 +175,18 @@ export default class ApiResponse extends LitElement {
179175
responseHeaderListTemplate(respHeaders) {
180176
return html`
181177
<div style="padding:16px 0 8px 0" class="resp-headers small-font-size upper bold-text">Response Headers:</div>
182-
<table style="padding-bottom:16px;" class='small-font-size'>
178+
<table style="padding-bottom:16px;" class='small-font-size mono-font'>
183179
${respHeaders.map((v) => html`
184180
<tr>
185-
<td style="padding:0 12px;vertical-align: top;"> ${v.name}</td>
186-
<td style="padding:0 12px;vertical-align: top; line-height:14px" class="descr-text">
187-
<span class="m-markdown">${unsafeHTML(marked(v.description || ''))}</span>
188-
${(v.schema && v.schema.example) ? html`<br/><span style="font-weight:bold">EXAMPLE:</span> ${v.schema.example}` : ''}
181+
<td style="vertical-align: top;"> ${v.name}</td>
182+
<td style="vertical-align: top; padding:0 5px;">
183+
${v.schema.type ? v.schema.type : ''}
184+
</td>
185+
<td style="vertical-align: top;">
186+
<div class="regular-font m-markdown m-markdown-small">${unsafeHTML(marked(v.description || ''))}</div>
187+
</td>
188+
<td style="vertical-align: top;">
189+
${v.schema.example ? v.schema.example : ''}
189190
</td>
190191
</tr>
191192
`)}
@@ -194,7 +195,7 @@ export default class ApiResponse extends LitElement {
194195

195196
mimeTypeDropdownTemplate(mimeTypes) {
196197
return html`
197-
<select @change="${(e) => { this.selectedMimeType = e.target.value; }}">
198+
<select @change="${(e) => { this.selectedMimeType = e.target.value; }}" style='margin-bottom: -1px; z-index:1'>
198199
${mimeTypes.map((mimeType) => html`<option value='${mimeType}'> ${mimeType} </option>`)}
199200
</select>`;
200201
}

0 commit comments

Comments
 (0)