Fixed actor countries filter disappearing if no countries are found.

This commit is contained in:
DebaucheryLibrarian 2025-08-27 04:42:35 +02:00
parent 55680b5150
commit e4f410f293
2 changed files with 15 additions and 4 deletions

View File

@ -1,6 +1,5 @@
<template>
<div
v-if="filteredCountries.length > 0"
class="countries-container"
>
<input
@ -11,7 +10,10 @@
class="input input-inline countries-search"
>
<div class="countries-list">
<div
v-if="filteredCountries.length > 0"
class="countries-list"
>
<Countries
v-if="!countryQuery && !filters.country && topCountries.length < filteredCountries.length"
:countries="topCountries"
@ -25,6 +27,10 @@
@country="(alpha2) => emit('update', 'country', alpha2, true)"
/>
</div>
<div class="empty">
No matching countries
</div>
</div>
</template>
@ -75,6 +81,12 @@ const filteredCountries = computed(() => allCountries.value.filter((country) =>
overflow-y: auto;
}
.empty {
padding: .5rem;
color: var(--glass);
font-style: italic;
}
:deep(.country.selected) .country-name {
padding: .5rem;
}

View File

@ -75,14 +75,12 @@ const networksBySlug = Object.fromEntries(networks.map((network) => [network.slu
const popularNetworks = [
'21sextury',
'adulttime',
'amateurallure',
'analvids',
'bamvisions',
'bang',
'bangbros',
'blowpass',
'brazzers',
'burningangel',
'digitalplayground',
'dogfartnetwork',
'dorcel',
@ -102,6 +100,7 @@ const popularNetworks = [
'pornworld',
'private',
'realitykings',
'rickysroom',
'teamskeet',
'vixen',
'xempire',