We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
property width provided in addNotificitaion is not working on property container properties top-center, center and bottom-center
width
addNotificitaion
container
top-center
center
bottom-center
['top-left', 'top-right', 'top-center', 'center', 'bottom-left', 'bottom-right', 'bottom-center'].forEach(container => { store.addNotification({ title: "Wonderful!", message: "teodosii@react-notifications-component", type: "danger", insert: "top", container: container as ReactNotificationOptions['container'], dismiss: { duration: 10900, }, width: 700, }); })
The text was updated successfully, but these errors were encountered:
@teodosii I am experiencing the same issue. I did some investigation and it seems you've set a max-width: 350px in all the centered positions indeed:
max-width: 350px
.notification-container--bottom-center, .notification-container--center, .notification-container--top-center { display: flex; justify-content: center; align-items: center; flex-direction: column; left: calc(50% - 175px); max-width: 350px; }
This could be fixed like so:
left: 50%; transform: translate(-50%, 0); min-width: 350px;
Sorry, something went wrong.
Fixed in 3.1.0, it was using width: 100% for centered containers instead of the supplied width.
3.1.0
width: 100%
No branches or pull requests
property
width
provided inaddNotificitaion
is not working on propertycontainer
propertiestop-center
,center
andbottom-center
Code used to generate notifications from screenshot
The text was updated successfully, but these errors were encountered: