Advertisements

[SOLVED] Thanks button bug

4 posts / 0 new
Editor
<a href="/hi/translator/altermetax" class="userpopupinfo username" rel="user1360194">altermetax</a>
जुड़ा: 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é? ☕ ¡Sí, por favor!
<a href="/hi/translator/enjovher" class="userpopupinfo username" rel="user1219642">Enjovher</a>
जुड़ा: 09.09.2014

Hi!

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

Moderator of void
<a href="/hi/translator/ivan-u7n" class="userpopupinfo username" rel="user1297482">Ivan U7n</a>
जुड़ा: 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.

Editor
<a href="/hi/translator/altermetax" class="userpopupinfo username" rel="user1360194">altermetax</a>
जुड़ा: 04.11.2017

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

नई टिप्पणी जोड़ें