lila icon indicating copy to clipboard operation
lila copied to clipboard

Puzzle : from my games - Move highlight not clipped

Open TBestLittleHelper opened this issue 1 month ago • 2 comments

Exact URL of where the bug happened

https://lichess.org/training/of-player?name=tbest

Image

Steps to reproduce the bug

https://lichess.org/training/of-player?name=tbest

Look for the puzzle where the move is from a8 square

What did you expect to happen?

Nice corners

What happened instead?

See img, the yellow move highlight is not clipped.

Operating system

win11

Browser and version (or alternate access method)

chrome latest

Additional information

Maybe we tag this as a good first issue?

TBestLittleHelper avatar Dec 03 '25 23:12 TBestLittleHelper

This issue has been happening since forever in the entire UI. Not even chess.com has this fixed, they just "hide" it by having the rounded corners be small.

See the analysis board https://lichess.org/analysis: Image

or the live board in the main page if you increase the board border radius: Image

A potential fix would be adding overflow: hidden; to cg-board but I do not know if this could cause other issues... https://github.com/lichess-org/lila/blob/f654609aa55724d39a56d44b69ab9d9e00b6f229/ui/lib/css/theme/board/_chessground.scss#L3-L14

dav1312 avatar Dec 04 '25 17:12 dav1312

That should work, and it could be added for only the <cg-board>s with a border-radius (mini-boards).

fitztrev avatar Dec 04 '25 22:12 fitztrev