Skip to content

Commit

Permalink
Style the sort by and add hit count
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jul 11, 2024
1 parent 8d89627 commit 3f08848
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Resources/views/search/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
<button class="ui button" type="submit" form="search-form" style="margin-top: 10px">{{ 'setono_sylius_meilisearch.form.search.update_filter'|trans }}</button>
</div>
<div class="twelve wide column">
{{ form_widget(searchForm.sort) }}
<div class="ui grid">
<div class="eight wide column">
{{ searchResult.hitsCount }} results found
</div>
<div class="eight wide right aligned column">
{{ form_widget(searchForm.sort) }}
</div>
</div>
<div class="ui three cards">
{% for item in items %}
{{ include('@SyliusShop/Product/_box.html.twig', { product: item }) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
text-align: center;
}
/**
* Facets
*/
#facets {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -48,5 +51,18 @@
font-size: 14px !important;
cursor: pointer;
}
/**
* Sort
*/
#sort {
padding: 0 !important;
margin: 0 !important;
text-align-last: right;
}
#sort option {
direction: rtl;
}
</style>
{% endblock %}

0 comments on commit 3f08848

Please sign in to comment.