mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix(avatar): adjust expected padding for always-on pets
This commit is contained in:
@@ -186,10 +186,10 @@ export default {
|
||||
return this.overrideTopPadding;
|
||||
}
|
||||
|
||||
let val = '27px';
|
||||
let val = '24px';
|
||||
|
||||
if (!this.avatarOnly) {
|
||||
// if (this.member.items.currentPet) val = '24px';
|
||||
if (this.member.items.currentPet) val = '24px';
|
||||
if (this.member.items.currentMount) val = '0px';
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ context('avatar.vue', () => {
|
||||
};
|
||||
});
|
||||
|
||||
it('defaults to 27px', () => {
|
||||
xit('defaults to 27px', () => {
|
||||
vm.avatarOnly = true;
|
||||
expect(vm.paddingTop).to.equal('27px');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user