Skip to content

Commit 9532c3d

Browse files
committed
improve oauth-scope rendering in request section to accomodate large list
1 parent fa526f7 commit 9532c3d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/rapidoc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,12 @@ export default class RapiDoc extends LitElement {
294294
}
295295
.tooltip-text {
296296
color: var(--fg2);
297+
max-width: 400px;
298+
position: absolute;
299+
z-index:1;
297300
background-color: var(--bg2);
298301
visibility: hidden;
302+
299303
overflow-wrap: break-word;
300304
}
301305
.tooltip:hover {
@@ -308,7 +312,6 @@ export default class RapiDoc extends LitElement {
308312
309313
.tooltip:hover .tooltip-text {
310314
visibility: visible;
311-
opacity: 1;
312315
}
313316
314317
@keyframes spin {

src/templates/security-scheme-template.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,11 @@ export function pathSecurityTemplate(pathSecurity) {
470470
${orSecurityItem1.pathScopes !== ''
471471
? html`
472472
<div>
473-
Required scopes:
474-
<ul style="font-family:var(--font-mono); margin-block: 4px; padding-inline:16px">
475-
${orSecurityItem1.pathScopes.split(',').map((scope) => html`<li>${scope}</li>`)}
476-
</ul>
473+
<b>Required scopes:</b>
474+
<br/>
475+
<div style="margin-left:8px">
476+
${orSecurityItem1.pathScopes.split(',').map((scope, cnt) => html`${cnt === 0 ? '' : '┃'}<span>${scope}</span>`)}
477+
</div>
477478
</div>`
478479
: ''
479480
}

0 commit comments

Comments
 (0)