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 styling for order column when few items are in cart #73

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions finished-files/gatsby/src/styles/MenuItemStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const MenuItemStyles = styled.div`
align-content: center;
align-items: center;
position: relative;
max-height: 100px;
Copy link
Author

@LinnJS LinnJS Dec 13, 2020

Choose a reason for hiding this comment

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

This fixes the image problem with few items, with a max-height does not allow image to stretch

.gatsby-image-wrapper {
grid-row: span 2;
height: 100%;
Expand Down
1 change: 1 addition & 0 deletions finished-files/gatsby/src/styles/OrderStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const OrderStyles = styled.form`
&.order,
&.menu {
grid-column: span 1;
align-content: flex-start;
Copy link
Author

Choose a reason for hiding this comment

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

This one makes all items start at top rather than middle

/* Chrome is weird about Grid and fieldsets, so we add a fixed height to fix it :) */
height: 600px;
}
Expand Down