alert msg in different line when there is no space in the msg (#4636)

This commit is contained in:
alammoiz 2022-11-17 11:13:39 +05:00 committed by GitHub
parent 55dc8afcf6
commit 89c6663265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,11 @@ class App extends React.Component {
render() {
const { updateAvailable, onboarded, darkMode } = this.state;
let toastOptions = {};
let toastOptions = {
style: {
'word-break': 'break-all',
},
};
if (darkMode) {
toastOptions = {
@ -81,6 +85,7 @@ class App extends React.Component {
borderRadius: '10px',
background: '#333',
color: '#fff',
'word-break': 'break-all',
},
};
}