mirror of
https://github.com/searxng/searxng.git
synced 2026-01-13 18:15:30 +00:00
[mod] replace #suggestions list wrapper <div> with <ul> (#5575)
This PR removes the "dot" prefix value from the `#suggestions` list's entries and adds it back via CSS instead. It makes styling easier and less hacky for those who are interested, removing the dot with just styles is currently not as easy as I would like it to be.
This commit is contained in:
2
searx/static/themes/simple/sxng-ltr.min.css
vendored
2
searx/static/themes/simple/sxng-ltr.min.css
vendored
File diff suppressed because one or more lines are too long
2
searx/static/themes/simple/sxng-rtl.min.css
vendored
2
searx/static/themes/simple/sxng-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,9 +1,9 @@
|
||||
<div id="suggestions" role="complementary" aria-labelledby="suggestions-title">
|
||||
<details class="sidebar-collapsible">
|
||||
<summary class="title" id="suggestions-title">{{ _('Suggestions') }}</summary>
|
||||
<div class="wrapper">
|
||||
<ul class="wrapper">
|
||||
{%- for suggestion in suggestions -%}
|
||||
<form method="{{ method or 'POST' }}" action="{{ url_for('search') }}">
|
||||
<li><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">
|
||||
@@ -15,9 +15,9 @@
|
||||
{%- 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>
|
||||
<input type="submit" class="suggestion" role="link" value="{{ suggestion.title }}">
|
||||
</form></li>
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
</ul>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user