Fix no-rounded border appearance before sac unlocked

This commit is contained in:
Hirame1 2022-04-27 18:33:17 +07:00
parent edc1b64f65
commit cf66c8826f
2 changed files with 14 additions and 2 deletions

View File

@ -770,6 +770,10 @@
position: relative;
}
.c-current-glyph-effects-with-top-border {
border-radius: 0.5rem;
}
.pelle-current-glyph-effects {
color: var(--color-pelle--base);
}

View File

@ -91,7 +91,12 @@ export default {
},
glyphColorPosition() {
return this.sacrificeUnlocked ? "l-glyph-color-position__low" : "l-glyph-color-position__top";
}
},
glyphInfoBorderClass() {
return {
"c-current-glyph-effects-with-top-border": !this.sacrificeUnlocked
};
},
}
};
</script>
@ -182,7 +187,10 @@ export default {
</button>
</div>
<SacrificedGlyphs v-if="sacrificeUnlocked && sacrificeDisplayed" />
<CurrentGlyphEffects v-else />
<CurrentGlyphEffects
v-else
:class="glyphInfoBorderClass()"
/>
</div>
</div>
<GlyphInventory />