[SOLVED] Thanks button bug

4 posts / 0 baru
Moderator
<a href="/id/translator/altermetax" class="userpopupinfo" rel="user1360194">altermetax <div class="moderator_icon" title="Moderator" ></div></a>
Telah bergabung: 04.11.2017
Pending moderation

Hello,
I just noticed a bug that happens to the link next to the "thanks" button on translations which have 0 thanks: https://imgur.com/ZmwZatL
The target of that link is also used as its text.
Clicking on it opens the pop-up with the list of the people who said thanks, but of course empty, while the link itself should not be there at all.

EDIT: I realized it's because of the following CSS property, which does exactly that:
a[href]:empty::before {
 content: attr(href);
}

Moderator ¡Café-dependiente ☕! | 🇻🇪
<a href="/id/translator/enjovher" class="userpopupinfo" rel="user1219642">Enjovher <div class="moderator_icon" title=" Moderaattori" ></div></a>
Telah bergabung: 09.09.2014

Hi!

I've seen that bug too, and the Admins have been informed about this issue.
Thank you for the info.

Retired Moderator of void
<a href="/id/translator/ivan-u7n" class="userpopupinfo" rel="user1297482">Ivan U7n </a>
Telah bergabung: 27.06.2016

Yeah, it was my suggestion to add this CSS rule to the site stylesheet to prevent empty titles of artists, songs, translations, etc. to be a nuance. I just haven't figured out that 0 thanks is also an empty link. I have now suggested a workaround and a possible fix.

Moderator
<a href="/id/translator/altermetax" class="userpopupinfo" rel="user1360194">altermetax <div class="moderator_icon" title="Moderator" ></div></a>
Telah bergabung: 04.11.2017

The best solution would probably be to put no link there if there are no thanks, not even an empty one.