Skip to content

Commit

Permalink
Merge pull request #5113 from matthewoates/master
Browse files Browse the repository at this point in the history
[Snackbar] Large screen snackbar does not cover up 100% width of screen anymore
  • Loading branch information
oliviertassinari authored Sep 17, 2016
2 parents 5395682 + 038aff8 commit 54d4fdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/Snackbar/Snackbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ function getStyles(props, context, state) {
const styles = {
root: {
position: 'fixed',
left: 0,
left: '50%',
display: 'flex',
right: 0,
bottom: 0,
zIndex: zIndex.snackbar,
visibility: open ? 'visible' : 'hidden',
transform: open ?
'translate(0, 0)' :
`translate(0, ${desktopSubheaderHeight}px)`,
'translate(-50%, 0)' :
`translate(-50%, ${desktopSubheaderHeight}px)`,
transition: `${transitions.easeOut('400ms', 'transform')}, ${
transitions.easeOut('400ms', 'visibility')}`,
},
Expand Down
2 changes: 1 addition & 1 deletion src/Snackbar/SnackbarBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ function getStyles(props, context) {
borderRadius: isSmall ? 0 : 2,
maxWidth: isSmall ? 'inherit' : 568,
minWidth: isSmall ? 'inherit' : 288,
width: isSmall ? 'calc(100vw - 48px)' : 'auto',
flexGrow: isSmall ? 1 : 0,
margin: 'auto',
},
content: {
fontSize: 14,
Expand Down

0 comments on commit 54d4fdb

Please sign in to comment.