Fix rtl lang problem in search box (#399)

Adds auto dir to index, search and header input html
main
alefvanoon 2021-08-31 00:10:07 +02:00 committed by GitHub
parent 388f51cfb7
commit be3714f074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -19,7 +19,8 @@
class="noHIxc" class="noHIxc"
name="q" name="q"
type="text" type="text"
value="{{ clean_query(query) }}"> value="{{ clean_query(query) }}"
dir="auto">
<input id="search-reset" type="reset" value="x"> <input id="search-reset" type="reset" value="x">
<input name="tbm" value="{{ search_type }}" style="display: none"> <input name="tbm" value="{{ search_type }}" style="display: none">
<input type="submit" style="display: none;"> <input type="submit" style="display: none;">
@ -51,7 +52,8 @@
name="q" name="q"
spellcheck="false" spellcheck="false"
type="text" type="text"
value="{{ clean_query(query) }}"> value="{{ clean_query(query) }}"
dir="auto">
<input name="tbm" value="{{ search_type }}" style="display: none"> <input name="tbm" value="{{ search_type }}" style="display: none">
<input type="submit" style="display: none;"> <input type="submit" style="display: none;">
<div class="sc"></div> <div class="sc"></div>

View File

@ -62,7 +62,8 @@
autocapitalize="none" autocapitalize="none"
spellcheck="false" spellcheck="false"
autocorrect="off" autocorrect="off"
autocomplete="off"> autocomplete="off"
dir="auto">
</div> </div>
<input type="submit" id="search-submit" value="{{ translation['search'] }}"> <input type="submit" id="search-submit" value="{{ translation['search'] }}">
</div> </div>

View File

@ -8,6 +8,7 @@
spellcheck="false" spellcheck="false"
autocorrect="off" autocorrect="off"
placeholder="Whoogle Search" placeholder="Whoogle Search"
autocomplete="off"> autocomplete="off"
dir="auto">
<input type="submit" style="width: 9%" id="search-submit" value="Search"> <input type="submit" style="width: 9%" id="search-submit" value="Search">
</form> </form>