[SOLVED] Thanks button bug

4 публікацій / 0 нових
#1 Чтв, 13/02/2020 - 20:46

altermetax
altermetaxМодератор
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);
}

Чтв, 13/02/2020 - 20:58

Enjovher
EnjovherМодератор¡Café-dependiente ☕! | 🇻🇪

Hi!

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

Птн, 14/02/2020 - 00:02

Ivan U7n
Ivan U7nМодератор у відставціof void

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.

Птн, 14/02/2020 - 00:23

altermetax
altermetaxМодератор

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

Log in or sign up to add a comment.
Вхід Вхід Користувач Зареєструватися