Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added Nutrients Suffix to the PrintView and some formatting to that #4493

Conversation

shethshlok
Copy link
Contributor

fix: Added the nutrition suffix to the print view, so it will be printed, added few CSS stylings to it…added few CSS stylings to it

What type of PR is this?

  • bug

What this PR does / why we need it:

This PR adds the suffix for each nutrition label to the print view so that when the user prints the recipe, the nutrition label is printed properly and with the correct formatting.

Here is how it was before:
WhatsApp Image 2024-11-01 at 14 35 20

Here is how it looks now:
WhatsApp Image 2024-11-01 at 14 36 01

Which issue(s) this PR fixes:

Fixes #4125

Special notes for your reviewer:

I have changed the ReciepePrintView.vue file, added styling for the nutrition table and added the suffix variable in the table

Testing

Tested this by importing a recipe with nutrition details and then after importing, tried to print the recipe, it prints the nutrition label properly.

@github-actions github-actions bot added the bugfix label Nov 1, 2024
Copy link
Collaborator

@michael-genson michael-genson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for this!

@michael-genson michael-genson enabled auto-merge (squash) November 1, 2024 22:04
@michael-genson michael-genson merged commit eb34ef0 into mealie-recipes:mealie-next Nov 1, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - When printing a recipe the nutrition uom is not being shown
2 participants