- [spell-card] Ingredients are a string

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

View File

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

View File

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