Skip to content

Commit

Permalink
fix(@tinacms/react-sidebar): fixed site elements relative to SiteWrapper
Browse files Browse the repository at this point in the history
Using margin instead of padding on SiteWrapper
  • Loading branch information
austincondiff committed Jan 15, 2021
1 parent de2e1f7 commit 2f5c75c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@tinacms/react-sidebar/src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ const SidebarGlobalStyles = createGlobalStyle`

const SiteWrapper = styled.div<{ open: boolean }>`
@media (min-width: 840px) {
padding-left: ${props => (props.open ? 'var(--tina-sidebar-width)' : '0')};
transition: padding-left 150ms ease-out;
margin-left: ${props => (props.open ? 'var(--tina-sidebar-width)' : '0')};
transition: margin-left 150ms ease-out;
transform: translate(0);
}
`
Expand Down

0 comments on commit 2f5c75c

Please sign in to comment.