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

View File

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