Hiding low-entropy photos from actor page. Fixed actors filter tab spacing. Fixed entity logo stretching on compact scene page.
This commit is contained in:
parent
37ccc3c3dd
commit
b63037ef74
|
|
@ -281,7 +281,7 @@ function updateFilter(prop, value, reload = true) {
|
||||||
.actors-header {
|
.actors-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: .5rem 0 .25rem 2.25rem;
|
padding: .5rem 0 .5rem 3rem;
|
||||||
margin-bottom: .25rem;
|
margin-bottom: .25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,10 +37,10 @@
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="photos nobar"
|
class="photos nobar"
|
||||||
:class="{ 'has-avatar': actor.avatar, 'has-photos': actor.avatar ? actor.photos.length > 1 : actor.photos.length > 0 }"
|
:class="{ 'has-avatar': actor.avatar, 'has-photos': actor.avatar ? photos.length > 1 : photos.length > 0 }"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-for="photo in actor.photos"
|
v-for="photo in photos"
|
||||||
:key="`photo-${photo.id}`"
|
:key="`photo-${photo.id}`"
|
||||||
class="photo-container"
|
class="photo-container"
|
||||||
:class="{ avatar: photo.isAvatar }"
|
:class="{ avatar: photo.isAvatar }"
|
||||||
|
|
@ -92,6 +92,8 @@ const { pageProps, routeParams } = pageContext;
|
||||||
const { actor } = pageProps;
|
const { actor } = pageProps;
|
||||||
|
|
||||||
const domain = routeParams.domain;
|
const domain = routeParams.domain;
|
||||||
|
|
||||||
|
const photos = actor.photos.filter((photo) => !photo.entropy || photo.entropy > 5.5);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
||||||
|
|
@ -774,7 +774,7 @@ function copySummary() {
|
||||||
}
|
}
|
||||||
|
|
||||||
.entity-logo {
|
.entity-logo {
|
||||||
width: 7.5rem;
|
max-width: 7.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,7 @@ export function sortActorsByGender(actors, context = {}) {
|
||||||
const genderActors = ['transsexual', 'female', undefined, null, 'male'].flatMap((gender) => alphaActors.filter((actor) => actor.gender === gender));
|
const genderActors = ['transsexual', 'female', undefined, null, 'male'].flatMap((gender) => alphaActors.filter((actor) => actor.gender === gender));
|
||||||
|
|
||||||
const titleSlug = slugify(context.title);
|
const titleSlug = slugify(context.title);
|
||||||
|
|
||||||
const titleActors = titleSlug ? genderActors.sort((actorA, actorB) => {
|
const titleActors = titleSlug ? genderActors.sort((actorA, actorB) => {
|
||||||
const actorASlug = actorA.slug.split('-')[0];
|
const actorASlug = actorA.slug.split('-')[0];
|
||||||
const actorBSlug = actorB.slug.split('-')[0];
|
const actorBSlug = actorB.slug.split('-')[0];
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ export function curateMedia(media, context = {}) {
|
||||||
height: media.height,
|
height: media.height,
|
||||||
index: media.index,
|
index: media.index,
|
||||||
sharpness: media.sharpness,
|
sharpness: media.sharpness,
|
||||||
|
entropy: media.entropy,
|
||||||
credit: media.credit,
|
credit: media.credit,
|
||||||
mime: mime && {
|
mime: mime && {
|
||||||
type: mime[0],
|
type: mime[0],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue