Navigation Menu

Skip to content

Commit

Permalink
Merge branch '1.4'
Browse files Browse the repository at this point in the history
* 1.4:
  Scaling text input field to keep enough room for the buttons
  • Loading branch information
pamil committed Feb 11, 2019
2 parents b126174 + 81e1dbb commit d13afde
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions src/Sylius/Bundle/ShopBundle/Resources/private/scss/style.scss
Expand Up @@ -31,3 +31,15 @@ body {
.ui.unmargined.segments {
margin: 0;
}

#searchbar {
display: flex;
}

#searchbarTextField {
flex-grow: 100;
}

#searchbarButtons {
width: fit-content;
}
@@ -1,12 +1,12 @@
<div class="ui segment">
<form method="get" action="{{ path('sylius_shop_product_index', {'slug': app.request.attributes.get('slug')}) }}" class="ui loadable form">
<div class="ui stackable grid">
<div class="eleven wide column">
<div class="ui stackable grid" id="searchbar">
<div class="column" id="searchbarTextField">
{% for filter in products.definition.enabledFilters %}
{{ sylius_grid_render_filter(products, filter) }}
{% endfor %}
</div>
<div class="three wide column">
<div class="right aligned column" id="searchbarButtons">
<div class="ui buttons">
<button type="submit" class="ui primary icon labeled button"><i class="search icon"></i> {{ 'sylius.ui.search'|trans }}</button>
<a href="{{ path('sylius_shop_product_index', {'slug': app.request.attributes.get('slug')}) }}" class="ui negative icon labeled button">
Expand Down

0 comments on commit d13afde

Please sign in to comment.