mirror of
https://github.com/searxng/searxng
synced 2024-11-09 01:10:26 +00:00
b7e315563d
Make elements in the sidebar collapse able. Except infoboxes all elements in the sidebar are collapsed by default. By folding out the sidebar elements, the UI looks less cluttered. Especially on small devices like smartphones, where the sidebar is above the results list, the UX should be improved [1]. [1] https://github.com/searxng/searxng/issues/2140 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
<div id="suggestions" role="complementary" aria-labelledby="suggestions-title">
|
|
<details>
|
|
<summary class="title" id="suggestions-title">{{ _('Suggestions') }}</summary>
|
|
<div class="wrapper">
|
|
{%- for suggestion in suggestions -%}
|
|
<form method="{{ method or 'POST' }}" action="{{ url_for('search') }}">
|
|
<input type="hidden" name="q" value="{{ suggestion.url }}">
|
|
{%- for category in selected_categories -%}
|
|
<input type="hidden" name="category_{{ category }}" value="1">
|
|
{%- endfor -%}
|
|
<input type="hidden" name="language" value="{{ current_language }}">
|
|
<input type="hidden" name="time_range" value="{{ time_range }}">
|
|
<input type="hidden" name="safesearch" value="{{ safesearch }}">
|
|
<input type="hidden" name="theme" value="{{ theme }}">
|
|
{%- if timeout_limit -%}
|
|
<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" >
|
|
{%- endif -%}
|
|
<input type="submit" class="suggestion" role="link" value="• {{ suggestion.title }}">
|
|
</form>
|
|
{%- endfor -%}
|
|
</div>
|
|
</details>
|
|
</div>
|