From 7209923de7cbfc3acfd498e3cc65f4fe1edbcce8 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 17 Nov 2026 15:13:47 +0100 Subject: [PATCH] Align board file labels with their squares --- assets/css/components/_board.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/css/components/_board.css b/assets/css/components/_board.css index 9fb30e0..cd91304 100644 --- a/assets/css/components/_board.css +++ b/assets/css/components/_board.css @@ -43,6 +43,13 @@ /* Play board */ #endgame-board { position: relative; } +/* Chessground's stock stylesheet shifts the file labels 24px right of the + board, assuming a gutter we don't have, so they land on square boundaries + instead of under each file. Place the row on the board and right-justify + each label within its square; the row's width already matches the board + because the container is sized to whole squares. */ +#endgame-board coords.files { left: 0; text-align: right; } + /* Chessground's wrapper has no intrinsic height; let it fill the sized aspect-ratio container so the board scales with the viewport. */ #endgame-board .cg-wrap { width: 100%; height: 100%; } \ No newline at end of file