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

BUG: Less than 3 recipe cards #36

Open
SandraBergstrom opened this issue May 12, 2023 · 3 comments
Open

BUG: Less than 3 recipe cards #36

SandraBergstrom opened this issue May 12, 2023 · 3 comments

Comments

@SandraBergstrom
Copy link
Owner

If there is less than 3 recipe cards it will not look good any longer. The cards get slimmer and the page layout get strange when only 1 card.

@SandraBergstrom
Copy link
Owner Author

SandraBergstrom commented May 12, 2023

Fixed with if statements to count the cards. It will change to "row-cols-1" when only 1 card and "row-cols-1 row-cols-md-2" when only 2 cards.

@SandraBergstrom
Copy link
Owner Author

Only works on favorite so not completly fixed yet.

@SandraBergstrom
Copy link
Owner Author

The problem seems to have been a fixed height on the .card-img-top. I have now changed it to keep an image ratio of 1:1 widht a full widht.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant