client: quick search results: remove a redundant button

This commit is contained in:
Adorian Doran 2025-02-08 00:33:23 +02:00
parent 1bfce1c8ed
commit 94d1dcd99b

View File

@ -14,12 +14,12 @@ const TPL = `
padding: 10px 10px 10px 0px;
height: 50px;
}
.quick-search button, .quick-search input {
border: 0;
font-size: 100% !important;
}
.quick-search .dropdown-menu {
max-height: 600px;
max-width: 400px;
@ -29,7 +29,7 @@ const TPL = `
box-shadow: -30px 50px 93px -50px black;
}
</style>
<div class="input-group-prepend">
<button class="btn btn-outline-secondary search-button" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="bx bx-search"></span>
@ -145,7 +145,7 @@ export default class QuickSearchWidget extends BasicWidget {
this.$dropdownMenu.append(`<span class="dropdown-item disabled">${t("quick-search.more-results", { number: numRemainingResults })}</span>`);
}
const $showInFullButton = $('<a class="dropdown-item" tabindex="0">').append($(`<button class="btn btn-sm">${t("quick-search.show-in-full-search")}</button>`));
const $showInFullButton = $('<a class="dropdown-item" tabindex="0">').text(t("quick-search.show-in-full-search"));
this.$dropdownMenu.append($(`<div class="dropdown-divider">`));
this.$dropdownMenu.append($showInFullButton);