Emoji auto break line, I dont know how to fix, can help me?(Discourse 2.0.0.beta5)
AI-generated summary
The discussion revolves around an issue where emojis are causing unwanted line breaks in a Discourse forum (version 2.0.0.beta5). trangchongcheng reports the problem, and sam suggests checking if ‘traditional markdown linebreaks’ is enabled, which it is but not resolving the issue. vinothkannans points to the custom theme as the source. Johani identifies that the issue stems from CSS rules meant to center images, which also affect emojis. They provide a fix by modifying the CSS to exclude emojis using :not(.emoji), which resolves the problem. trangchongcheng confirms the solution works and expresses gratitude.
looks like either a plugin issue or perhaps a setting issue.
Is traditional markdown linebreaks enabled on your site?
It is enabled but dont working…
You can see my forum here.
https://xeom.info/t/so-dien-thoai-khieu-nai-tai-xe-grabcar-grabbike-len-tong-dai-cho-khach-hang
It looks like the problem is coming from the custom theme you are using.
I could be wrong, but did you use the code to center all images from this topic?
If so, then the issue you’re facing is an unintended consequence.
You need to exclude emoji from the rules that center images, so change this:
.lightbox-wrapper {
display: block;
text-align: center;
}
p>img {
display: block;
margin: 0 auto;
}
to this:
.lightbox-wrapper {
display: block;
text-align: center;
}
p>img:not(.emoji){
display: block;
margin: 0 auto;
}
And the result will be:
I will also edit my post in the topic.
great! It already works
Thank you so much :*
loving ![]()
