fix coord orientation

This commit is contained in:
Thibault Duplessis
2026-01-18 23:30:15 +01:00
parent 9f3000b9d5
commit 8fd8cbc3c0
+6 -2
View File
@@ -70,9 +70,13 @@ export function renderWrap(element: HTMLElement, s: HeadlessState): Elements {
);
} else {
container.appendChild(
renderCoords(ranks, 'ranks' + ranksPositionClass, s.ranksPosition === 'right' ? 'white' : 'black'),
renderCoords(
ranks,
'ranks' + orientClass + ranksPositionClass,
s.ranksPosition === 'right' ? 'white' : 'black',
),
);
container.appendChild(renderCoords(files, 'files', 'black'));
container.appendChild(renderCoords(files, 'files' + orientClass, 'black'));
}
}