commit 49ac6866daaebf30c363554ef72ac957c069d9f9
parent 5fcdb9c0938f19745d892e902ddc831864b716ff
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sun, 24 Dec 2023 15:45:13 -0500
cleanup
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -1895,6 +1895,7 @@ func drawSeatsStyle(authUser *database.User, g *PokerGame) string {
html += fmt.Sprintf(`#seat%s { border: 2px solid #0d1b8f; }`, idxStr)
}
html += fmt.Sprintf(`#seat%s .inner:before { content: "%s"; }`, idxStr, pUsername.String())
+ html += fmt.Sprintf(`#seat%s .throne { display: none; }`, idxStr)
html += drawSeatCashLabel(idxStr, itoa2(p.getCash()))
html += drawSeatStatusLabel(idxStr, p.getStatus())
if ongoing != nil {
@@ -1902,13 +1903,12 @@ func drawSeatsStyle(authUser *database.User, g *PokerGame) string {
html += drawSeatPotLabel(idxStr, itoa2(op.GetBet()))
}
}
- html += fmt.Sprintf(`#seat%s .throne { display: none; }`, idxStr)
} else {
html += fmt.Sprintf(`#seat%s { border: 1px solid #333; }`, idxStr)
html += fmt.Sprintf(`#seat%s .inner:before { content: ""; }`, idxStr)
+ html += fmt.Sprintf(`#seat%s .throne { display: block; }`, idxStr)
html += drawSeatCashLabel(idxStr, "")
html += drawSeatStatusLabel(idxStr, "")
- html += fmt.Sprintf(`#seat%s .throne { display: block; }`, idxStr)
}
}
})