mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
client: quick search results: remove a redundant button
This commit is contained in:
parent
1bfce1c8ed
commit
94d1dcd99b
@ -14,12 +14,12 @@ const TPL = `
|
|||||||
padding: 10px 10px 10px 0px;
|
padding: 10px 10px 10px 0px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-search button, .quick-search input {
|
.quick-search button, .quick-search input {
|
||||||
border: 0;
|
border: 0;
|
||||||
font-size: 100% !important;
|
font-size: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-search .dropdown-menu {
|
.quick-search .dropdown-menu {
|
||||||
max-height: 600px;
|
max-height: 600px;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
@ -29,7 +29,7 @@ const TPL = `
|
|||||||
box-shadow: -30px 50px 93px -50px black;
|
box-shadow: -30px 50px 93px -50px black;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="input-group-prepend">
|
<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">
|
<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>
|
<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>`);
|
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($(`<div class="dropdown-divider">`));
|
||||||
this.$dropdownMenu.append($showInFullButton);
|
this.$dropdownMenu.append($showInFullButton);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user