elementui message pop-up box MessageBox English content does not wrap the problem

Problem: When the content of the MessageBox is in Chinese, it will automatically wrap, but when the content is in English, it will not trigger automatic line break

As shown in the figure, when the content name is in English, a prompt box will be displayed if the name is too long, and the line will not be automatically wrapped

 When the content name is in Chinese, it will automatically wrap

 Solution: force automatic line break

.el-message-box {
	& .el-message-box__message p {
	  word-break: break-all;
	}
}

The content is in English and can also automatically wrap

Guess you like

Origin blog.csdn.net/m0_73533910/article/details/130325154