[fix] search bar: cursor jumps to beginning when clicking text field

Apparently, setting padding on an input field and then clicking that
space created by the padding forces the seekbar cursor to jump to the
beginning of the input field instead of the actual text position.

By removing that padding, the search bar input automatically claims that
height for itself and thus clicking on the blank space moves the cursor to
the correct position.

closes https://github.com/searxng/searxng/issues/5371
This commit is contained in:
Bnyro 2025-10-24 21:05:31 +02:00 committed by Markus Heiser
parent 2cdbbb249a
commit b7f9b489c9

View File

@ -178,7 +178,6 @@ html.no-js #clear_search.hide_if_nojs {
#send_search {
display: block;
margin: 0;
padding: 0.8rem;
background: none repeat scroll 0 0 var(--color-search-background);
border: none;
outline: none;
@ -196,6 +195,7 @@ html.no-js #clear_search.hide_if_nojs {
#send_search {
.ltr-rounded-right-corners(0.8rem);
padding: 0.8rem;
&:hover {
cursor: pointer;