lichess-org / chessground

Mobile/Web chess UI for lichess.org
https://lichess.org
GNU General Public License v3.0
1.02k stars 262 forks source link

Highlight square is not properly shown #237

Closed elsiniestra closed 1 year ago

elsiniestra commented 1 year ago

There's an issue with the fact that the highlighted/selected square is not aligned with the original one. But on lichens.org it's aligned fine.

Chessground v.8.3.5: image Lichess: image

Of course, I've seen #201 issue, but there is no answer how to fix it

niklasf commented 1 year ago

Can you please share the (rendered) HTML/DOM and CSS of this page?

elsiniestra commented 1 year ago

@niklasf Deployed the sample with the issue: https://633700aebcb8df009c50cbe4--frabjous-tanuki-f16c66.netlify.app image

niklasf commented 1 year ago

There are two issues.

If you take the SVG background and divide it into 8 equal rows, you'll find that this won't match the square positions.

image

And then there's

cg-board {
  border: 2px solid #ffe5b4;
}

messing with the layout.

elsiniestra commented 1 year ago

Thanks for the help!