+
diff --git a/src/components/RestaurantsTable.vue b/src/components/RestaurantsTable.vue
index cf3d2f0..54358aa 100644
--- a/src/components/RestaurantsTable.vue
+++ b/src/components/RestaurantsTable.vue
@@ -4,6 +4,7 @@ import "../assets/datatable.css";
import DataTable from "datatables.net-vue3";
import DataTablesCore from "datatables.net";
import "datatables.net-select";
+import "datatables.net-responsive";
import { PropType, ref } from "vue";
import RatingField from "./RatingField.vue";
import Restaurant from "../models/restaurant";
@@ -80,9 +81,8 @@ defineExpose({ deselectAll });
:data="props.data"
:options="{
layout: {
- top: ['pageLength', null, 'search'],
- topStart: null,
- topEnd: null,
+ topStart: 'pageLength',
+ topEnd: 'search',
bottom: 'paging',
bottomStart: null,
bottomEnd: null,
@@ -90,6 +90,7 @@ defineExpose({ deselectAll });
select: {
style: 'single',
},
+ responsive: true,
}"
@select="onRowSelected"
>
diff --git a/src/utils/filters.ts b/src/utils/filters.ts
index b7c8c45..43cdc65 100644
--- a/src/utils/filters.ts
+++ b/src/utils/filters.ts
@@ -62,7 +62,7 @@ export function makeFilters(config: SearchPreferences) {
const lowerIndex = prices.findIndex((element) => element == config.lowerPriceBound);
const upperIndex = prices.findIndex((element) => element == config.upperPriceBound);
- const values = prices.slice(lowerIndex, upperIndex);
+ const values = prices.slice(lowerIndex, upperIndex + 1);
filters.push(filterValues.bind(undefined, "price", values, false, undefined));
}