forked from DebaucheryLibrarian/traxxx
Improved actor filter layout behavior.
This commit is contained in:
@@ -23,6 +23,13 @@
|
||||
class="gender-link transsexual"
|
||||
><Gender gender="transsexual" /></router-link>
|
||||
</li>
|
||||
<li class="gender">
|
||||
<router-link
|
||||
:to="{ name: 'actors', params: { gender: 'other', letter } }"
|
||||
:class="{ selected: gender === 'other' }"
|
||||
class="gender-link other"
|
||||
><Icon icon="question5" /></router-link>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="letters nolist">
|
||||
@@ -56,10 +63,12 @@ import Actor from '../tile/actor.vue';
|
||||
import Gender from './gender.vue';
|
||||
|
||||
async function fetchActors() {
|
||||
const gender = this.gender.replace('trans', 'transsexual');
|
||||
|
||||
this.actors = await this.$store.dispatch('fetchActors', {
|
||||
limit: 1000,
|
||||
letter: this.letter.replace('all', ''),
|
||||
genders: [this.gender.replace('trans', 'transsexual').replace('other', null)],
|
||||
genders: [gender === 'other' ? null : gender],
|
||||
});
|
||||
}
|
||||
|
||||
@@ -131,6 +140,7 @@ export default {
|
||||
}
|
||||
|
||||
.genders {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
padding: 0 .5rem 0 0;
|
||||
border-right: solid 1px $shadow-hint;
|
||||
@@ -190,5 +200,9 @@ export default {
|
||||
.tiles {
|
||||
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
|
||||
}
|
||||
|
||||
.genders {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user