mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
add classes to scalable numbers
apply "scalable" to all apply "scaled-up" when ingredient factor is >1 apply "unscaled" when ingredient factor is 1 apply "scaled-down" when factor is <1
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<span v-html="calculateAmount(number)"></span>
|
||||
|
||||
<span class="scalable" :class="[this.factor===1 ? 'unscaled' : (this.factor > 1 ? 'scaled-up':'scaled-down')]" v-html="calculateAmount(number)"></span>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user