Skip to content

Commit 1b0b572

Browse files
committed
fix: server description in new line under server URI
1 parent 359e901 commit 1b0b572

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/ApiSummary.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,10 @@ export class ApiSummary extends AmfHelperMixin(LitElement) {
398398
const { baseUri, protocols } = this;
399399
const uri = this._computeBaseUri(server, baseUri, protocols);
400400
const description = this._computeDescription(server);
401-
const serverItem = `${uri }${description ? ` - ${description}` : ''}`
402-
return html`<li>${serverItem}</li>`;
401+
return html`<li>
402+
${uri}
403+
<div class="server-description">${description}</div>
404+
</li>`;
403405
}
404406

405407
/**

src/Styles.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,10 @@ a:hover {
165165
font-weight: 700;
166166
margin: 0.8em 0 0.2em 0;
167167
}
168+
169+
.server-description {
170+
display: block;
171+
font-size: var(--api-summary-server-description-font-size, 12px);
172+
font-weight: var(--api-summary-server-description-font-weight, 600);
173+
}
168174
`;

0 commit comments

Comments
 (0)