Skip to content

Commit

Permalink
fix(app): fixing the width of the cart flyout
Browse files Browse the repository at this point in the history
  • Loading branch information
misteroh10302 committed Jul 31, 2019
1 parent e0b5ca7 commit 2922413
Show file tree
Hide file tree
Showing 3 changed files with 16,557 additions and 4,375 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
!.vscode
.DS_STORE

.env
node_modules
yarn-error.log
dist
built
package-lock.json
8 changes: 6 additions & 2 deletions app/src/components/Cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ interface CartSidebarProps {
export const CartSidebar = styled.div`
${(props: CartSidebarProps) => css`
position: fixed;
right: ${props.open ? '0px' : '-360px'};
right: ${props.open ? '0px' : '-500px'};
top: 1;
max-width: 340px;
max-width: 500px;
max-height: 100vh;
min-height: 100vh;
overflow: scroll;
background-color: ${props.theme.color.white};
box-shadow: -5px 0 5px rgba(0, 0, 0, 0.1);
transition: 250ms linear;
width: 500px;
::-webkit-scrollbar {
width: 0px;
background: transparent;
Expand All @@ -32,6 +33,9 @@ export const CartSidebar = styled.div`
margin: ${props.theme.layout.spacing.small};
margin-top: ${props.theme.layout.spacing.small} !important;
}
${props.theme.mediaQueries.mobile} {
max-width: 340px;
}
`}
`

Expand Down
Loading

1 comment on commit 2922413

@vercel
Copy link

@vercel vercel bot commented on 2922413 Aug 1, 2019

Choose a reason for hiding this comment

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

Deployment failed with the following error:

Missing `start` (or `now-start`) script in `package.json`. See: https://docs.npmjs.com/cli/start

Please sign in to comment.