Skip to content

Commit df5ca63

Browse files
authored
Merge pull request #87 from karlkilgi/patch-2
Show logo when search is hidden
2 parents 6e49d3a + 5227860 commit df5ca63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rapidoc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,13 @@ export default class RapiDoc extends LitElement {
448448
navBarTemplate() {
449449
return html`
450450
<div class='nav-bar'>
451+
<div style="padding:16px 30px 0 16px;">
452+
<slot name="nav-logo" class="logo"></slot>
453+
</div>
451454
${(this.allowSearch === 'false')
452455
? ''
453456
: html`
454-
<div style="position:sticky; top:0; display:flex; flex-direction:row; align-items: stretch; padding:16px 30px 16px 16px; background: var(--nav-bg-color);">
455-
<slot name="nav-logo" class="logo"></slot>
457+
<div style="position:sticky; top:0; display:flex; flex-direction:row; align-items: stretch; padding:16px 30px 16px 16px; background: var(--nav-bg-color);">
456458
<div style="display:flex; flex:1">
457459
<input id="nav-bar-search"
458460
style="width:100%; padding-right:20px; color:var(--nav-hover-text-color); border-color:var(--nav-accent-color); background-color:var(--nav-hover-bg-color)"

0 commit comments

Comments
 (0)