Emoji auto break line?


(Cheng Trang) #1

Emoji auto break line, I dont know how to fix, can help me?(Discourse 2.0.0.beta5)


(Sam Saffron) #2

:slight_smile: :slight_smile: :slight_smile: looks like either a plugin issue or perhaps a setting issue.

Is traditional markdown linebreaks enabled on your site?


(Cheng Trang) #3

It is enabled but dont working…
You can see my forum here.


(Vinoth Kannan) #4

It looks like the problem is coming from the custom theme you are using.


(Joe) #5

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.


What is the code for centering an uploaded image?
(Cheng Trang) #7

great! It already works
Thank you so much :*
loving :slight_smile:


(Joshua Rosenfeld) #8

This topic was automatically closed after 28 hours. New replies are no longer allowed.