- Blind mode tutorial
lichess.org
Donate

Lichess Tools display bug

@totalnoob69

Hi,
I am reporting a bug. There is a Lichess Tools display bug (I'm browsing the internet with the Firefox browser).

In the email inbox, if Lichess Tools is enabled, there's now a lot of space between paragraphs.
If I disable Lichess Tools, the space between paragraphs returns to normal.

  1. With Lichess Tools: lots of space between paragraphs:
    https://i.imgur.com/oTNzvY6.png

  2. Without Lichess Tools: correct spacing between paragraphs:
    https://i.imgur.com/5qD4MhF.png

Sincerely,
Pascal

@totalnoob69 Hi, I am reporting a bug. There is a Lichess Tools display bug (I'm browsing the internet with the Firefox browser). In the email inbox, if Lichess Tools is enabled, there's now a lot of space between paragraphs. If I disable Lichess Tools, the space between paragraphs returns to normal. 1) With Lichess Tools: lots of space between paragraphs: https://i.imgur.com/oTNzvY6.png 2) Without Lichess Tools: correct spacing between paragraphs: https://i.imgur.com/5qD4MhF.png Sincerely, Pascal

This problem is something I am trying to solve natively on Lichess: https://github.com/lichess-org/lila/issues/17394 and your report really helps. Thanks, @pascalg !

Lichess renders the text with white-space-collapse: collapse (not their fault, browsers do this automatically for custom elements and Lichess use <their> and <mine> for some reason) which takes any multiple white spaces (spaces, tabs, new lines) and collapses them to just one. But they also render two <br> (line break) elements between any two paragraphs, which become apparent if I change the white-space-collapse rule. I've tried some CSS that should be working, but apparently browsers have other ideas.

In layman terms, without active code that will replace all multiple line breaks with just one (so a manual white space collapse just for line breaks which would be ugly) I can't fix this. Lichess has to do it.

This problem is something I am trying to solve natively on Lichess: https://github.com/lichess-org/lila/issues/17394 and your report really helps. Thanks, @pascalg ! Lichess renders the text with white-space-collapse: collapse (not their fault, browsers do this automatically for custom elements and Lichess use <their> and <mine> for some reason) which takes any multiple white spaces (spaces, tabs, new lines) and collapses them to just one. But they also render two <br> (line break) elements between any two paragraphs, which become apparent if I change the white-space-collapse rule. I've tried some CSS that should be working, but apparently browsers have other ideas. In layman terms, without active code that will replace all multiple line breaks with just one (so a manual white space collapse just for line breaks which would be ugly) I can't fix this. Lichess has to do it.

I don't see anything in the fix about two <br> elements. Let's wait and see.

I don't see anything in the fix about two <br> elements. Let's wait and see.

OK, I think the new line elements were there from the creation of the message. I can't reproduce the error. I think people just created the message with multiple spaces and now you see them as they were written, as opposed to collapsed. Going to close the bug on Github.

OK, I think the new line elements were there from the creation of the message. I can't reproduce the error. I think people just created the message with multiple spaces and now you see them as they were written, as opposed to collapsed. Going to close the bug on Github.

@TotalNoob69

There now appears to be an inconsistency between the Lichess team message compose box (for sending a message to all team members) and the Lichess inbox.

(This is not related to the Lichess Tools extension.)

  1. Message written in the message box of a Lichess team
    https://i.imgur.com/Nr6i6uk.png

  2. Message that appeared in the lichess inbox

https://i.imgur.com/A6HpcNc.png

@TotalNoob69 There now appears to be an inconsistency between the Lichess team message compose box (for sending a message to all team members) and the Lichess inbox. (This is not related to the Lichess Tools extension.) 1) Message written in the message box of a Lichess team https://i.imgur.com/Nr6i6uk.png 2) Message that appeared in the lichess inbox https://i.imgur.com/A6HpcNc.png

Yeah, I believe that's another bug, the one that renders two <br> elements for each new line in team chat messages. You have to raise an issue with Lila.

Yeah, I believe that's another bug, the one that renders two <br> elements for each new line in team chat messages. You have to raise an issue with Lila.

@Baratheon_Dynasty you should create new topics for new subjects, not hijack existing ones. Anyone can create topics in this team forum and it would help people easier find what you write.

As for your question, LiChess Tools is not a graphical design extension. It adds functionality, not visuals, if I can help it. Occasionally I add something like the chess com piece sets because it was easy and - most importantly - because I am actually taking those pieces from chess com, not from my extension. Even the LiChess Tools themes, while changing the visuals of the site, usually they do it to enable or support some functionality or another.

However, there are other extensions that focus exclusively on look and feel, like this one: https://chromewebstore.google.com/detail/lichess-custom-themes-boa/jmbbkjpjhchfelfflgainekgdmoddgcg

I have not tried it, but the guy advertised it here, on Lichess: https://lichess.org/forum/general-chess-discussion/custom-chess-pieces-and-boards-for-free

@Baratheon_Dynasty you should create new topics for new subjects, not hijack existing ones. Anyone can create topics in this team forum and it would help people easier find what you write. As for your question, LiChess Tools is not a graphical design extension. It adds functionality, not visuals, if I can help it. Occasionally I add something like the chess com piece sets because it was easy and - most importantly - because I am actually taking those pieces from chess com, not from my extension. Even the LiChess Tools themes, while changing the visuals of the site, usually they do it to enable or support some functionality or another. However, there are other extensions that focus exclusively on look and feel, like this one: https://chromewebstore.google.com/detail/lichess-custom-themes-boa/jmbbkjpjhchfelfflgainekgdmoddgcg I have not tried it, but the guy advertised it here, on Lichess: https://lichess.org/forum/general-chess-discussion/custom-chess-pieces-and-boards-for-free

This topic has been archived and can no longer be replied to.