Skip to content

Commit 074e733

Browse files
committed
search improvements, fix postition of tags in the search box and adjust the title so more subtitle fits in the box.
1 parent 426a4b2 commit 074e733

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

layouts/index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@
7676
}
7777

7878
.search-result-title {
79-
margin-top: 40px;
79+
margin-top: 25px;
80+
}
81+
82+
.search-result-subtitle {
83+
text-overflow: ellipsis;
8084
}
8185

8286
.search-tags-desktop {
@@ -85,7 +89,7 @@
8589
}
8690

8791
@media (min-width: 992px) {
88-
bottom: 13px;
92+
bottom: 20px;
8993
}
9094
}
9195

@@ -250,7 +254,7 @@ <h2 class="pt-5 color-blue">{{i18n "search" }}</h2>
250254
<div class="col-12 col-lg-10">
251255
<h3 class="color-blue search-result-title">${item._highlightResult.title.value}</h3>
252256
<p class="color-gray search-result-subtitle">${item._highlightResult.subtitle.value}</p>
253-
<div class="pt-3 search-tags-desktop">
257+
<div class="position-absolute search-tags-desktop">
254258
${tagToHtml(item.tag)}
255259
</div>
256260
</div>

0 commit comments

Comments
 (0)