Skip to content

Commit

Permalink
Fix auto-width on xs screens (#368)
Browse files Browse the repository at this point in the history
* Fixes #367 - Fix auto-width on xs screens

* Update CHANGELOG

* 1.0.6

* Add CHANGELOG credits
  • Loading branch information
iamhosseindhv authored Apr 18, 2021
1 parent 8c6d6bf commit fe4b7c8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
Thanks to all contributers who improved notistack by opening an issue/PR.

### `[email protected]`
###### April 18, 2021
* **@rzmz** Snackbars should have equal width on XS screens [#367](https://github.com/iamhosseindhv/notistack/issues/367)


<br />


### `[email protected]`
###### February 28, 2021
* Prevent snackbars from having the same width [#356](https://github.com/iamhosseindhv/notistack/pull/356)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notistack",
"version": "1.0.5",
"version": "1.0.6",
"description": "Highly customizable notification snackbars (toasts) that can be stacked on top of each other",
"main": "dist/index.js",
"module": "dist/notistack.esm.js",
Expand Down
3 changes: 3 additions & 0 deletions src/SnackbarItem/SnackbarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ const styles = (theme: Theme) => {
},
collapseWrapperInner: {
width: 'auto',
[theme.breakpoints.down('xs')]: {
width: '100%',
},
},
});
}
Expand Down

0 comments on commit fe4b7c8

Please sign in to comment.