Skip to content

Commit 4b4cca2

Browse files
committed
Sidebar: Show search in top nav
1 parent ec81207 commit 4b4cca2

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

assets/css/v2/style.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,11 @@ nav {
576576
.content-layout .side-gutter {
577577
grid-column-start: 2;
578578
}
579+
580+
.navbar atomic-search-interface {
581+
margin: 0;
582+
display: block;
583+
}
579584
}
580585

581586
.list-page {
@@ -708,11 +713,6 @@ atomic-search-layout atomic-layout-section[section="search"] {
708713
z-index: 9999;
709714
}
710715

711-
header atomic-search-interface {
712-
/* Hide by default */
713-
display: none;
714-
}
715-
716716
body:not(:has(.main-layout)) header atomic-search-interface {
717717
/* Show on landing pages */
718718
display: block;
@@ -789,7 +789,7 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
789789
position: sticky;
790790
top: 0;
791791
margin-top: 0rem;
792-
padding-top: 1rem;
792+
padding-top: 1.5rem;
793793
align-items: start;
794794
overflow-y: auto;
795795
color: var(--color-foreground);

assets/js/coveo.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,6 @@ async function atomicCoveo() {
5353
},
5454
});
5555
await searchPageInterface.executeFirstSearch();
56-
} else {
57-
if (sidebar) {
58-
await searchBarSidebar.initialize({
59-
accessToken: token,
60-
organizationId: org_id,
61-
analytics: { analyticsMode: 'legacy' },
62-
preprocessRequest: (request, clientOrigin, metadata) => {
63-
const body = JSON.parse(request.body);
64-
body.q = `<@- ${body.q} -@>`;
65-
request.body = JSON.stringify(body);
66-
67-
return request;
68-
},
69-
});
70-
await searchBarSidebar.executeFirstSearch();
71-
}
7256
}
7357

7458
/* Initialize the header searchbar*/

0 commit comments

Comments
 (0)