mirror of
https://github.com/lichess-org/chessground.git
synced 2026-05-26 13:50:53 +00:00
fix coord orientation
This commit is contained in:
+6
-2
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user