mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Search: Fix redesign
This commit makes the search workable, fixes the length of the search button, translates the placeholder and returns the number of results
This commit is contained in:
parent
49abdd3b88
commit
db91af2a52
4 changed files with 11 additions and 3 deletions
|
@ -31,11 +31,15 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
<div class="header_search_inputbt">
|
||||
<form class="header_search_inputbt">
|
||||
<input name="type" type="hidden" value="{$type ?? 'users'}" />
|
||||
<input type="" name="" class="header_search_input" placeholder="Начните вводить любое имя, название или слово">
|
||||
<input name="query" class="header_search_input" placeholder="{_search_placeholder}" value="{$_GET['query'] ?? ''}" />
|
||||
<button class="button_search">{_search_button}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<p style="margin-left: 15px; margin-top: 0;">
|
||||
<b>{tr("results", $count)}</b>
|
||||
</p>
|
||||
{/block}
|
||||
|
||||
{block link|strip|stripHtml}
|
||||
|
|
|
@ -1610,6 +1610,7 @@ body.scrolled .toTop:hover {
|
|||
padding: 10px;
|
||||
border-top: 1px solid #ebebeb;
|
||||
display: flex;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.header_search_input {
|
||||
|
@ -1638,6 +1639,7 @@ body.scrolled .toTop:hover {
|
|||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
margin-left: 10px;
|
||||
width: 7.5%;
|
||||
}
|
||||
|
||||
.content_search {
|
||||
|
|
|
@ -362,6 +362,7 @@
|
|||
"search_for_groups" = "Search for groups";
|
||||
"search_for_people" = "Search for people";
|
||||
"search_button" = "Find";
|
||||
"search_placeholder" = "Start typing any name, title or word";
|
||||
"results_zero" = "No results";
|
||||
"results_one" = "$1 result";
|
||||
"results_other" = "$1 results";
|
||||
|
|
|
@ -380,6 +380,7 @@
|
|||
"search_for_groups" = "Поиск групп";
|
||||
"search_for_people" = "Поиск людей";
|
||||
"search_button" = "Найти";
|
||||
"search_placeholder" = "Начните вводить любое имя, название или слово";
|
||||
"results_zero" = "Ни одного результата";
|
||||
"results_one" = "Один результат";
|
||||
"results_few" = "$1 результата";
|
||||
|
|
Loading…
Reference in a new issue