dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 646b6bed58ba1b70e96a6e0cdc14b27e6e2de774
parent 15a643239c97fec9d167f1d804c189dd846ce340
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 16 Jun 2023 19:22:36 -0700

hide arrow when no best move

Diffstat:
Mpkg/web/handlers/chess.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go @@ -964,6 +964,8 @@ func renderBestMove(styles *StylesBuilder, bestMove *chess.Move, isFlipped bool) s2 := bestMove.S2() arrowStyle := arrow(s1, s2, isFlipped) styles.Append(arrowStyle) + } else { + styles.Append(`#arrow { display: none !important; }`) } }