fix(shops): various

This commit is contained in:
Sabe Jones
2024-04-24 17:58:20 -05:00
parent 3bf323032c
commit 372763c57c
9 changed files with 24 additions and 18 deletions
@@ -1,7 +1,8 @@
<template>
<div
id="body"
class="customize-section d-flex flex-column justify-content-between"
class="customize-section d-flex flex-column"
:class="{ 'justify-content-between': editing }"
>
<sub-menu
class="text-center"
@@ -21,7 +22,7 @@
:current-value="user.preferences.shirt"
/>
</div>
<customize-banner />
<customize-banner v-if="editing" />
</div>
</template>
@@ -66,7 +66,7 @@
></p>
</div>
<customize-banner
v-else
v-else-if="editing"
/>
</div>
</template>
@@ -2,7 +2,7 @@
<div
id="hair"
class="customize-section d-flex flex-column"
:class="{ 'justify-content-between': !showEmptySection}"
:class="{ 'justify-content-between': editing && !showEmptySection}"
>
<sub-menu
class="text-center"
@@ -42,11 +42,11 @@
id="facialhair"
>
<customize-options
v-if="editing && userMustaches.length > 1"
v-if="userMustaches.length > 1"
:items="userMustaches"
/>
<customize-options
v-if="editing && userBeards.length > 1"
v-if="userBeards.length > 1"
:items="userBeards"
/>
<div
@@ -64,7 +64,7 @@
</div>
</div>
<customize-banner
v-if="!showEmptySection"
v-if="editing && !showEmptySection"
/>
</div>
</template>
@@ -169,7 +169,7 @@ export default {
return [none, ...options];
},
showEmptySection () {
return this.editing && this.activeSubPage === 'facialhair'
return this.activeSubPage === 'facialhair'
&& this.userMustaches.length === 1 && this.userBeards.length === 1;
},
},
@@ -1,7 +1,8 @@
<template>
<div
id="skin"
class="customize-section d-flex flex-column justify-content-between"
class="customize-section d-flex flex-column"
:class="{ 'justify-content-between': editing }"
>
<sub-menu
class="text-center"
@@ -13,7 +14,7 @@
:items="userSkins"
:current-value="user.preferences.skin"
/>
<customize-banner />
<customize-banner v-if="editing" />
</div>
</template>