fix: Make fractions in the ingredient list look a tiny bit nicer (#3725)

This commit is contained in:
Bart Kummel
2024-06-13 15:04:45 +02:00
committed by GitHub
parent 4a0a8e8a5e
commit 9f7d74aecf
3 changed files with 19 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ export function useParsedIngredientText(ingredient: RecipeIngredient, disableAmo
if (fraction[1] > 0) {
returnQty += includeFormating ?
` <sup>${fraction[1]}</sup>&frasl;<sub>${fraction[2]}</sub>` :
`<sup>${fraction[1]}</sup><span>&frasl;</span><sub>${fraction[2]}</sub>` :
` ${fraction[1]}/${fraction[2]}`;
}
}