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: Image height in home screen mobile format #4088

Merged

Conversation

p0lycarpio
Copy link
Contributor

What type of PR is this?

(REQUIRED)

  • bug

What this PR does / why we need it:

(REQUIRED)

Adding recipe tags to recipe cards #3864 can make the recipe card bigger and create a blank space below the image.
This PR fixes this bug by filling the height of the card with the image.

Before:
Capture d’écran du 2024-08-23 18-37-37

After:
Capture d’écran du 2024-08-23 18-37-27

Also the button for toggling the mobile card view was fixed using another breakpoint.

Which issue(s) this PR fixes:

(REQUIRED)

N/A

@michael-genson
Copy link
Collaborator

LGTM. The other places this gets used are the normal (non-condensed) view, and the meal planner edit view. Would you be able to share screenshots of the differences there? (if any)

@p0lycarpio
Copy link
Contributor Author

p0lycarpio commented Aug 23, 2024

Other locations like meal planner, recipes timeline and search results have not changed because the default value (125px) has been set for the image size. Normally only the home screen uses the 'fill-height' property.

@michael-genson michael-genson enabled auto-merge (squash) August 23, 2024 18:26
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.

Ah yep you're right, thanks!

@michael-genson michael-genson merged commit 67dc0d7 into mealie-recipes:mealie-next Aug 23, 2024
11 checks passed
boc-the-git pushed a commit to boc-the-git/mealie that referenced this pull request Sep 28, 2024
boc-the-git pushed a commit to boc-the-git/mealie that referenced this pull request Sep 28, 2024
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