Skip to content

Commit 202f3a6

Browse files
committed
Search result page: change result item layout
1 parent 7662a3f commit 202f3a6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/css/instantsearch.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ footer.md-footer {
9191
font-size: 14px;
9292
line-height: 21px;
9393
letter-spacing: 0.12px;
94+
margin-top: 10px;
95+
padding-left: 10px;
96+
border-left: 2px solid var(--mid-grey);
9497
}
9598

9699
.md-content .ais-InstantSearch .instantsearch__entry-content .ais-Highlight-highlighted {
@@ -102,15 +105,14 @@ footer.md-footer {
102105
font-size: 12px;
103106
line-height: 21px;
104107
letter-spacing: 0.12px;
105-
margin-top: 16px;
106108
}
107109

108110
.md-content .ais-InstantSearch .instantsearch__entry-breadcrumbs-item + .instantsearch__entry-breadcrumbs-item {
109111
margin-left: 12px;
110112
}
111113

112-
.md-content .ais-InstantSearch .instantsearch__entry-breadcrumbs-item + .instantsearch__entry-breadcrumbs-item:before {
113-
content: '>';
114+
.md-content .ais-InstantSearch .instantsearch__entry-breadcrumbs-item:before {
115+
content: '<';
114116
display: inline-block;
115117
padding-right: 12px;
116118
}

docs/js/instantsearch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
</div>`;
8585
}
8686

87-
breadcrumbsKeys?.forEach((breadcrumbKey) => {
87+
breadcrumbsKeys?.toReversed().forEach((breadcrumbKey) => {
8888
breadcrumbsHTML += `<span class="instantsearch__entry-breadcrumbs-item">
8989
${instantsearch.highlight({
9090
attribute: `hierarchy.${breadcrumbKey}`,
@@ -96,10 +96,10 @@
9696

9797
return resultHTML = `<a class="instantsearch__entry" href="${hit.url}">
9898
${headerHTML}
99-
${contentHTML}
10099
<div class="instantsearch__entry-breadcrumbs">
101100
${breadcrumbsHTML}
102101
</div>
102+
${contentHTML}
103103
</a>`;
104104
},
105105
},

0 commit comments

Comments
 (0)