mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
5.67k stars 617 forks source link

[BUG] - Fractions of ingredient quantities less than 1 aren't displayed when no unit is selected #3582

Closed Dalarialus closed 1 month ago

Dalarialus commented 2 months ago

First Check

What is the issue you are experiencing?

When a recipe contains a fraction of an ingredient that doesn't include a unit (for example, half a red onion), the recipe summary displays "0.5 red onion", rather than the expected "½ red onion"

Steps to Reproduce

1) Create a recipe 2) Enter as an ingredient "0.5 (no unit) red onion" 3) Save the recipe 4) View the recipe

Please provide relevant logs

No relevant logs as far as I can tell.

Mealie Version

Image: ghcr.io/mealie-recipes/mealie Tag: nightly Build: efbb571bc2b94ae79c78eb5b083b04914afe5a81

Deployment

Unraid

Additional Deployment Details

No response

michael-genson commented 1 month ago

This isn't really a bug, though I agree we should probably default to fractions when we don't have a unit. Whether to show decimals or fractions is decided by the unit, and when there is no unit, we need to pick a default

Dalarialus commented 1 month ago

I was torn between reporting it as a bug or a feature request, to be honest!