- [spell-card] Ingredients are a string

This commit is contained in:
Alexis
2020-03-08 21:36:00 +01:00
parent 975174985c
commit d382cb7b30
2 changed files with 4 additions and 6 deletions

View File

@@ -7,7 +7,7 @@
v-bind:schools="['Lumomancie', 'Nécromancie']"
v-bind:level="'30'"
v-bind:charge="'2'"
v-bind:ingredients="[`Volonté`, `Geste`]"
v-bind:ingredients="`Volonté, Geste`"
v-bind:cost="'-90'"
v-bind:variables="[{name: 'x', description: 'lol'}]"
/>

View File

@@ -33,9 +33,7 @@
<div class="casting-ingredients">
<p class="title">Nécessite</p>
<p class="content">
<span v-for="ingredient of ingredients" :key="ingredient">
<span>{{ ingredient }} </span>
</span>
{{ ingredients }}
</p>
</div>
</section>
@@ -67,7 +65,7 @@ export default {
description: Array,
level: String,
schools: Array,
ingredients: Array,
ingredients: String,
charge: String,
cost: String,
variables: Array,
@@ -77,7 +75,6 @@ export default {
<style lang="scss">
.spell-card {
max-width: 35rem;
padding: .5rem;
@@ -156,6 +153,7 @@ export default {
text-transform: uppercase;
}
.content {
padding-top: 1rem;
font-size: .85rem;
text-align: justify;
text-align-last: center;