I have my React project deployed to Heroku, and the alert isn't resizing appropriately on my smartphone. About 10-15% on each side cannot be seen when the alert pops up.
I was able to locate the react-confirm-alert.css file and added this query:
@media only screen and (max-width: 767px) {
.react-confirm-alert-body {
width: auto;
}
}
I tested this in the mobile responsive view in Chrome and it seems to be working perfectly. When I resize the screen and shrink it to the size of smartphones, the alert resizes accordingly.
However, I'm unable to push these changes to heroku because node_modules is added to .gitignore. Also, a user in this post said that we should not be modifying anything in node_modules.
Could I request that react-confirm-alert be made mobile responsive?
Lastly, if there is a way to fix this problem that I am unaware of, please do let me know. (I can always use Bootstrap's modal-dialog class, but I'd like to use React stuff since I'm learning that framework right now)
Hello,
I have my React project deployed to Heroku, and the alert isn't resizing appropriately on my smartphone. About 10-15% on each side cannot be seen when the alert pops up.
I was able to locate the
react-confirm-alert.css
file and added this query:I tested this in the mobile responsive view in Chrome and it seems to be working perfectly. When I resize the screen and shrink it to the size of smartphones, the alert resizes accordingly.
However, I'm unable to push these changes to heroku because node_modules is added to .gitignore. Also, a user in this post said that we should not be modifying anything in
node_modules
.Could I request that
react-confirm-alert
be made mobile responsive?Lastly, if there is a way to fix this problem that I am unaware of, please do let me know. (I can always use Bootstrap's
modal-dialog
class, but I'd like to use React stuff since I'm learning that framework right now)Thank you much.