From 9b4e1c743a5926a73d4b4d248f2df9242273e18d Mon Sep 17 00:00:00 2001 From: lalka2016 <99399973+lalka2016@users.noreply.github.com> Date: Wed, 24 May 2023 16:49:10 +0300 Subject: [PATCH] Small improvements --- Web/Presenters/templates/@layout.xml | 6 ++--- Web/Presenters/templates/Search/Index.xml | 29 ++++++++++++----------- Web/static/css/main.css | 13 ++++++++-- Web/static/js/openvk.cls.js | 22 ++++++++++++++++- locales/en.strings | 3 ++- locales/ru.strings | 3 ++- 6 files changed, 54 insertions(+), 22 deletions(-) diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index ed593490..cee07a9c 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -88,8 +88,8 @@ - @@ -275,6 +276,7 @@ + {_s_now_on_site} @@ -330,10 +332,9 @@ - - {_s_now_on_site} {/if} + {/block} \ No newline at end of file diff --git a/Web/static/css/main.css b/Web/static/css/main.css index caa0e022..da6dc236 100644 --- a/Web/static/css/main.css +++ b/Web/static/css/main.css @@ -97,6 +97,14 @@ h1 { background-size: 1.5px 41px; } +.header_navigation .nodivider { + display: inline-block; + height: 29px; + padding: 11px 4px 0 7px; + background: none; + background-size: 1.5px 41px; +} + .header_navigation .link a { color: #D7D7D7; text-decoration: none; @@ -670,6 +678,7 @@ select { font-family: tahoma, verdana, arial, sans-serif; width: 100%; box-sizing: border-box; + outline:none; } .header2 { @@ -2306,10 +2315,9 @@ a.poll-retract-vote { overflow-y: hidden; background:#F7F7F7; overflow-x:hidden; - width:29.2%; + width:28.8%; border-top:1px solid #E5E7E6; float:right; - padding-left:9.6px; scrollbar-width: none; font-size:12px; background-color:#f7f7f7; @@ -2339,6 +2347,7 @@ a.poll-retract-vote { .searchList { list-style: none; + user-select: none; padding-left:0px; } diff --git a/Web/static/js/openvk.cls.js b/Web/static/js/openvk.cls.js index 5eb4318d..77b2e3ed 100644 --- a/Web/static/js/openvk.cls.js +++ b/Web/static/js/openvk.cls.js @@ -579,7 +579,7 @@ function expandSearch() document.querySelector(".whatFind").style.display = "block"; document.querySelector(".whatFind").style.marginRight = "-80px"; - document.getElementById("searchInput").style.width = "650px"; + document.getElementById("searchInput").style.width = "627px"; } async function decreaseSearch() @@ -612,6 +612,26 @@ function hideParams(name) } } +function resetSearch() +{ + let inputs = document.querySelectorAll("input") + let selects = document.querySelectorAll("select") + + for(const input of inputs) + { + if(input != dnt) { + input.value = "" + } + } + + for(const select of selects) + { + if(select != sortyor) { + select.value = 0 + } + } +} + $(document).on("scroll", () => { if($(document).scrollTop() > $(".sidebar").height() + 50) { $(".floating_sidebar")[0].classList.add("show"); diff --git a/locales/en.strings b/locales/en.strings index a2b3e1aa..891d9664 100644 --- a/locales/en.strings +++ b/locales/en.strings @@ -1505,4 +1505,5 @@ "s_with_photo" = "with photo"; "s_only_in_names" = "only in names"; -"s_any" = "any"; \ No newline at end of file +"s_any" = "any"; +"reset" = "Reset"; \ No newline at end of file diff --git a/locales/ru.strings b/locales/ru.strings index f6f1bef8..24d0f078 100644 --- a/locales/ru.strings +++ b/locales/ru.strings @@ -1399,4 +1399,5 @@ "s_with_photo" = "с фото"; "s_only_in_names" = "только в именах"; -"s_any" = "любой"; \ No newline at end of file +"s_any" = "любой"; +"reset" = "Сброс"; \ No newline at end of file