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

Make snackbar offset from view customisable #58

Closed
iamhosseindhv opened this issue Feb 5, 2019 · 6 comments
Closed

Make snackbar offset from view customisable #58

iamhosseindhv opened this issue Feb 5, 2019 · 6 comments
Labels
must have really? it's 2019 and still we don't have this feature?

Comments

@iamhosseindhv
Copy link
Owner

iamhosseindhv commented Feb 5, 2019

Issue to fix problems of this nature: #57 #48

@iamhosseindhv iamhosseindhv added the must have really? it's 2019 and still we don't have this feature? label Feb 5, 2019
@JoeHetfield
Copy link

any work around about this? for set the offset to zero.

@iamhosseindhv
Copy link
Owner Author

iamhosseindhv commented Feb 25, 2019

This for sure will be added in future releases, however there're others feature/issues that take priority over this one.

@raymondsze
Copy link

Any release schedule? Would like to have the offset feature.

@duongdev
Copy link

duongdev commented Mar 7, 2019

Any option to auto set dense={true} on mobile and dense={false} on desktop? @iamhosseindhv

@iamhosseindhv
Copy link
Owner Author

No support from notistack. But of course it can be done wherever you're wrapping your app inside a SnackbarProvider @duongdev

@dhythm
Copy link

dhythm commented Jan 20, 2021

For someone's help, I just put a style like

const useStyles = makeStyles((theme) => ({
  // ...
  collapseWrapper: {
    marginTop: 4,
    marginBottom: 4,
  },
}))

to the props 'classes' of SnackProvider. (The default margin is 6px both)
Then, I could change the margin between the snackbars.

Before
Screen Shot 2021-01-20 at 8 57 07

After
Screen Shot 2021-01-20 at 8 56 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
must have really? it's 2019 and still we don't have this feature?
Projects
None yet
Development

No branches or pull requests

5 participants