Overlapping "5 Likes" and heart icon buttons


(Tobias Eigen) #1

When I clicked on the heart to like it, this weird overlap went away.


(cpradio) #2

Okay, seems to be a simple fix. It is due to the margin-right: -5px, removing that seems to resolve the issue.

PR Submitted
https://github.com/discourse/discourse/pull/3842


(Jeff Atwood) #3

Pretty sure that is there intentionally otherwise likes is too far from the heart with “default” button spacing. Might be another way to express it in CSS.


(cpradio) #4

Here are screenshots of the differences

With negative right margin

Without negative right margin

It is pretty negligible, and the description of Likes next to the number signifies its relation.


(Jeff Atwood) #5

Yeah the negative margin is intentional. But it could possibly be expressed as a margin override instead, etc.