Fixed Vixen trailer scraping. Using album instead of expand for actor photos.

This commit is contained in:
DebaucheryLibrarian
2021-01-24 17:16:55 +01:00
parent f7f9862489
commit 4151412156
4 changed files with 155 additions and 3 deletions

View File

@@ -315,12 +315,20 @@
/>
</div>
<Album
v-if="showAlbum"
:items="actor.photos"
:title="actor.name"
class="portrait"
@close="showAlbum = false"
/>
<div class="actor-content">
<Scroll
v-if="actor.avatar || (actor.photos && actor.photos.length > 0)"
v-slot="scroll"
:expanded="photosExpanded"
@expand="(state) => photosExpanded = state"
:expandable="false"
@album="showAlbum = true"
>
<Photos
:actor="actor"
@@ -329,6 +337,12 @@
/>
</Scroll>
<button
v-if="actor.photos && actor.photos.length > 2"
class="album-toggle"
@click="showAlbum = true"
><Icon icon="grid3" />View album</button>
<FilterBar
ref="filter"
:fetch-releases="fetchActor"
@@ -358,6 +372,7 @@ import Pagination from '../pagination/pagination.vue';
import FilterBar from '../filters/filter-bar.vue';
import Releases from '../releases/releases.vue';
import Photos from './photos.vue';
import Album from '../album/album.vue';
import Expand from '../expand/expand.vue';
import Scroll from '../scroll/scroll.vue';
import Gender from './gender.vue';
@@ -394,6 +409,7 @@ async function mounted() {
export default {
components: {
Album,
FilterBar,
Pagination,
Photos,
@@ -408,6 +424,7 @@ export default {
actor: null,
releases: null,
totalCount: 0,
showAlbum: false,
limit: 20,
pageTitle: null,
bioExpanded: false,
@@ -694,6 +711,30 @@ export default {
border-bottom: solid 1px var(--shadow-hint);
}
.album-toggle {
height: fit-content;
display: inline-flex;
align-items: center;
justify-content: center;
padding: .5rem 1rem;
border: none;
border-bottom: solid 1px var(--shadow-hint);
color: var(--shadow);
background: var(--background-dim);
font-size: 1rem;
font-weight: bold;
.icon {
fill: var(--shadow);
margin: -.1rem .5rem 0 0;
}
&:hover {
background: var(--shadow-hint);
cursor: pointer;
}
}
@media(max-width: $breakpoint4) {
.descriptions-container {
display: none;