Fixed actor count filter showing 1 when none are available, fixed search input not submitting on enter on mobile.

This commit is contained in:
2026-11-13 17:12:48 +01:00
parent 473bcb9c01
commit fb5f1ce5ca
9 changed files with 25 additions and 14 deletions
+3 -2
View File
@@ -41,8 +41,9 @@ const range = ref({
const minValue = computed(() => Math.min(range.value.a, range.value.b));
const maxValue = computed(() => Math.max(range.value.a, range.value.b));
const minPercentage = computed(() => ((minValue.value - props.min) / (props.max - props.min)) * 100);
const maxPercentage = computed(() => ((maxValue.value - props.min) / (props.max - props.min)) * 100);
const span = computed(() => props.max - props.min || 1); // a collapsed range (min equals max) would divide by zero
const minPercentage = computed(() => ((minValue.value - props.min) / span.value) * 100);
const maxPercentage = computed(() => ((maxValue.value - props.min) / span.value) * 100);
function set(type = 'change') {
if (props.values) {