apvarun / toastify-js

Pure JavaScript library for better notification messages
https://apvarun.github.io/toastify-js/
MIT License
2.13k stars 230 forks source link

Fix width problem in position center. #52

Closed LI-NA closed 4 years ago

LI-NA commented 4 years ago

Position center seems have some bug like this (captured on chrome 80): Center problem So, removed max-width: fit-content and adding width: fit-content for fix some width problem. Also adding max-width: calc(100% - 20px) for mobile device.

ps. fit-content is not working in IE.

Magnifikator commented 4 years ago

I can confirm the problem with Chromium based browsers. The PR fixed the problem for me, thanks.

However I wanted to remark that 'fit-content' is not yet supported in Firefox. You need to prefix it with -moz- like so: width: -moz-fit-content;

LI-NA commented 4 years ago

I think this PR should be closed because the problem already fixed. :)