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 49 additions and 46 deletions
Showing only changes of commit a4c35b04bf - Show all commits

View File

@ -10,6 +10,10 @@
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="d-flex flex-column flex-md-row me-2"> <div class="dropdown dropdown-filter-sort 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,9 +66,7 @@
{% 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>
@ -113,6 +111,7 @@
</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>