+ {{#if attributesForFaceting}}
+
{{#each attributesForFaceting}}
{{/each}}
-
diff --git a/templates/InstantSearch.js/src/app.css b/templates/InstantSearch.js/src/app.css
index ad0b9b980..acb1a0120 100644
--- a/templates/InstantSearch.js/src/app.css
+++ b/templates/InstantSearch.js/src/app.css
@@ -38,10 +38,16 @@ em {
padding: 1rem;
}
-.container-app {
- display: grid;
- grid-template-columns: 20% 75%;
- grid-gap: 5%;
+.search-panel {
+ display: flex;
+}
+
+.search-panel__filters {
+ flex: 1;
+}
+
+.search-panel__results {
+ flex: 3;
}
.ais-hits {
@@ -59,7 +65,7 @@ em {
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.16);
}
-#searchBox {
+#searchbox {
margin-bottom: 2rem;
}
diff --git a/templates/InstantSearch.js/src/app.js.hbs b/templates/InstantSearch.js/src/app.js.hbs
index 87a5df1a3..52a3702f4 100644
--- a/templates/InstantSearch.js/src/app.js.hbs
+++ b/templates/InstantSearch.js/src/app.js.hbs
@@ -8,7 +8,7 @@ const search = instantsearch({
search.addWidget(
instantsearch.widgets.searchBox({
- container: '#searchBox',
+ container: '#searchbox',
{{#if searchPlaceholder}}
placeholder: '{{searchPlaceholder}}',
{{/if}}
diff --git a/templates/React InstantSearch/src/App.css b/templates/React InstantSearch/src/App.css
index 644d1d68c..925ccd85c 100644
--- a/templates/React InstantSearch/src/App.css
+++ b/templates/React InstantSearch/src/App.css
@@ -38,13 +38,19 @@ em {
padding: 1rem;
}
-.container-app {
- display: grid;
- grid-template-columns: 20% 75%;
- grid-gap: 5%;
+.search-panel {
+ display: flex;
+}
+
+.search-panel__filters {
+ flex: 1;
+}
+
+.search-panel__results {
+ flex: 3;
}
-.searchBox {
+.searchbox {
margin-bottom: 2rem;
}
diff --git a/templates/React InstantSearch/src/App.js.hbs b/templates/React InstantSearch/src/App.js.hbs
index a5826a0f4..b95abd912 100644
--- a/templates/React InstantSearch/src/App.js.hbs
+++ b/templates/React InstantSearch/src/App.js.hbs
@@ -36,15 +36,17 @@ class App extends Component {
apiKey="{{apiKey}}"
indexName="{{indexName}}"
>
-
-
+
+ {{#if attributesForFaceting}}
+
{{#each attributesForFaceting}}
{{/each}}
-
-
+ {{/if}}
+
+
diff --git a/templates/Vue InstantSearch/src/App.vue b/templates/Vue InstantSearch/src/App.vue
index bc8a9efb1..496270950 100644
--- a/templates/Vue InstantSearch/src/App.vue
+++ b/templates/Vue InstantSearch/src/App.vue
@@ -18,14 +18,16 @@
api-key="{{apiKey}}"
index-name="{{indexName}}"
>
-
-
+
+ {{#if attributesForFaceting.length}}
+
{{#each attributesForFaceting}}
{{/each}}
-