Extensions list: sort_by parameter #159

Merged
Márton Lente merged 36 commits from filter-sort into main 2024-06-03 12:57:45 +02:00
2 changed files with 46 additions and 49 deletions
Showing only changes of commit 792d8fd6e5 - Show all commits

View File

@ -10,10 +10,6 @@
display: flex display: flex
+padding(2) +padding(2)
.dropdown-item,
.dropdown-toggle
white-space: nowrap
+media-md +media-md
.dropdown-menu-filter .dropdown-menu-filter
gap: var(--spacer-1) gap: var(--spacer-1)

View File

@ -21,9 +21,9 @@
</h2> </h2>
{% endif %} {% endif %}
<div class="d-flex">
{% if tags %} {% if tags %}
<div class="dropdown dropdown-filter-sort me-2"> <div class="d-flex flex-column flex-md-row me-2">
<div class="dropdown dropdown-filter-sort">
<button class="align-items-center d-flex dropdown-toggle js-dropdown-toggle" data-toggle-menu-id="js-dropdown-menu-filter"> <button class="align-items-center d-flex dropdown-toggle js-dropdown-toggle" data-toggle-menu-id="js-dropdown-menu-filter">
{% if tag %} {% if tag %}
{{ tag.name }} {{ tag.name }}
@ -66,7 +66,9 @@
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
</div>
{% endif %} {% endif %}
<div class="dropdown dropdown-filter-sort"> <div class="dropdown dropdown-filter-sort">
<button class="dropdown-toggle js-dropdown-toggle" data-toggle-menu-id="js-dropdown-menu-sort"> <button class="dropdown-toggle js-dropdown-toggle" data-toggle-menu-id="js-dropdown-menu-sort">
Sort by <i class="i-chevron-down"></i> Sort by <i class="i-chevron-down"></i>
@ -111,7 +113,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
{% else %} {% else %}
{% if author %} {% if author %}
<h2>{% blocktranslate %}Extensions by{% endblocktranslate %} <em class="search-highlight">{{ author }}</em></h2> <h2>{% blocktranslate %}Extensions by{% endblocktranslate %} <em class="search-highlight">{{ author }}</em></h2>