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.61k stars 611 forks source link

feat: Show nutrition on recipe print #3740

Closed Asdoos closed 1 week ago

Asdoos commented 2 weeks ago

What type of PR is this?

What this PR does / why we need it:

I wan't to have the nutritions on the print for a recipe - so I add a option to do it:

image

image

Which issue(s) this PR fixes:

No issue

Special notes for your reviewer:

I needed to extraxt the labels from RecipeNutrition Component. May I rewrite the component also to use the extraxted method ?

Testing

Tested manually.

Kuchenpirat commented 2 weeks ago

Hey thanks for your work on this. Two little things.

  1. I would prefer if the table borders are not shown in the print out. This matches the pretty clean look of the existing print better IMHO.
  2. I would suggest that we hide the non populated items. There is no point in having them I would say.
Asdoos commented 2 weeks ago

One Nutrition: image

Some Nutritions: image

image

Asdoos commented 1 week ago

Thanks for the input!