1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

(fixed): last search result's bottom gap by adding an bottom spacer element

This commit is contained in:
2023-11-19 22:35:27 +05:30
parent 2d76b03783
commit 76825c5e63
3 changed files with 13 additions and 0 deletions

View File

@@ -81,6 +81,7 @@
<i class="fa-solid fa-chevron-right text-accent_three mx-2 hidden group-hover:block"></i>
</span>
</div>
<div class="bottomspacer w-full h-[10px]"></div>
</div>
<div id="searchresults" class="searchresults w-full flex-col justify-start px-2 mt-1 hidden">
<p class="text-xs text-accent_three mt-3 mb-2 mx-1">SEARCH RESULTS</p>

View File

@@ -272,6 +272,10 @@ function inject_search_results (results, keyword) {
searchRes.appendChild(profileDiv);
});
}
const bottomSpacer = document.createElement("div");
bottomSpacer.className = "bottomspacer w-full h-[10px]";
searchRes.appendChild(bottomSpacer);
}
function inject_no_results(results, keyword) {

View File

@@ -922,6 +922,14 @@ video {
height: 47vh;
}
.h-\[20px\] {
height: 20px;
}
.h-\[10px\] {
height: 10px;
}
.w-0 {
width: 0px;
}