-
Notifications
You must be signed in to change notification settings - Fork 73
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
Why is there no "centered" container? #46
Comments
For a very simple reason - it doesn't behave properly for more than 1 notification. When you add a 2nd notification you'll see a sloppy movement because the container gets bigger and needs to be repositioned - BY browser. On the other hand, if we use only: .center {
top: 50%;
left: 50%;
} Further notifications will not be centered anymore, only the first. |
Hence this is the reason it doesn't exist. |
Well to be honest this would be the developer's problem if he chooses to use this. It is merely meant for single short-lived notifications for example like "Access denied" or "OK" - especially where there will never be the case of more than one notification. |
Indeed, it might be helpful in some cases. Will let it open and will get implemented together with the remaining issues. |
I've added |
@teodosii why not publish to npmjs? |
@icymind Apparently I forgot to publish, now should be available. |
It would be very useful to have an extra container to show a message at the center of the screen.
It could be implemented very easily by doing the following:
<div class="notification-container-center-center">
The text was updated successfully, but these errors were encountered: