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

feat: redesign recipe info card #5026

Open
wants to merge 13 commits into
base: mealie-next
Choose a base branch
from

Conversation

Kuchenpirat
Copy link
Collaborator

@Kuchenpirat Kuchenpirat commented Feb 6, 2025

What this PR does / why we need it:

This redesignes the recipe info card.

There are a few UI/UX aspects this PR improves.
In the old design

  • pretty much all elements are chips but are not clickable (besides the "I made this)
  • repetetive icons for the times
  • especially on mobile the UI looked a bit crammed with everything being stacked on top of each other

This PR freshens up the UI by removing the chips and using Icons with text. The screenshots below should show the changes pretty clear.

Also removed a small visual bug where two dividers are shown if no recipe description is provided.

Thanks to @Fruchtxzwerg for helping out designing this.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Happy to have feedback around the design choices. Am 100% not a designer, so there is probably still a lot of stuff that can be improved.

I don't know why, but the items simply don't want to align vertically. Happy to get a helping hand on this one.

Screenshots

Platform Before After
Desktop image image
Mobile image image

@michael-genson
Copy link
Collaborator

Oh my god this is so much better. I will try to find time today to review

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.

Yeah wow love how this looks. I love how the borders/separators are dynamic depending on which times you have set. Very cool.

Did you play around with any other button styles for last made? I think this is fine, and maybe my eyes just need an adjustment since it's new, but the small circle with a plus looks a little out of place to me. Maybe a rounded rectangle instead of a circle?


Only issues I've noticed are with the print view. One text string got deleted, but also the large text looks a little weird since it's so much bigger than the description:
image

The icons also don't seem to wrap correctly sometimes; maybe need a no-wrap in there somewhere? (this is also an issue with the Mealie icon up top in the first picture, but I know that's not a new issue to this PR)

image

I don't think the icon wrapping issue is that big of a deal, at least for this PR, but I think the description text needs to be bigger on the print view. Not necessarily the same size as the new stuff, but a little closer in size.

@@ -547,7 +547,6 @@
"failed-to-add-recipe-to-mealplan": "Failed to add recipe to mealplan",
"failed-to-add-to-list": "Failed to add to list",
"yield": "Yield",
"yields-amount-with-text": "Yields {amount} {text}",
Copy link
Collaborator

@michael-genson michael-genson Feb 6, 2025

Choose a reason for hiding this comment

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

This is still used in the print view (see above)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Or maybe the print view just needs to be updated with the new component

@miah120
Copy link

miah120 commented Feb 8, 2025

I think the ui of the "last made" FAB could be tweaked a lil to match the visual hierarchy. What would you think of this UI instead?
image

Overall, love the updates you're making here!

@Kuchenpirat
Copy link
Collaborator Author

@miah120 thanks for the input, I have to see it in context but I think this is an improvement 😊👍
Thanks 😊

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.

3 participants