Compare commits

...

2 Commits

7 changed files with 11 additions and 7 deletions

View File

@ -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;
} }

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "traxxx-web", "name": "traxxx-web",
"version": "0.42.5", "version": "0.42.6",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.42.5", "version": "0.42.6",
"dependencies": { "dependencies": {
"@brillout/json-serializer": "^0.5.8", "@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5", "@dicebear/collection": "^7.0.5",

View File

@ -87,7 +87,7 @@
"overrides": { "overrides": {
"vite": "$vite" "vite": "$vite"
}, },
"version": "0.42.5", "version": "0.42.6",
"imports": { "imports": {
"#/*": "./*.js" "#/*": "./*.js"
} }

View File

@ -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>

View File

@ -774,7 +774,7 @@ function copySummary() {
} }
.entity-logo { .entity-logo {
width: 7.5rem; max-width: 7.5rem;
} }
} }

View File

@ -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];

View File

@ -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],