commit daacd221f0191b662b179c855ce41e65c5d0769a
parent cb91fbdc051c51261031d457d82e23c15e61b999
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Thu, 14 Dec 2023 23:04:54 -0500
improve UI
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -1586,7 +1586,7 @@ func buildSeatsHtml(g *PokerGame, authUser *database.User, roomID string) (html
g.PlayersMtx.RLock()
defer g.PlayersMtx.RUnlock()
for i := range g.Players {
- html += `<div id="seat` + itoa(i+1) + `Pot"></div>`
+ html += `<div id="seat` + itoa(i+1) + `Pot" class="seatPot"></div>`
}
html += `<div>`
for i := range g.Players {
@@ -1886,6 +1886,10 @@ body {
#seat4_cash { }
#seat5_cash { }
#seat6_cash { }
+.seatPot {
+ font-size: 20px;
+ font-family: Arial,Helvetica,sans-serif;
+}
#seat1Pot { top: 88px; left: 528px; width: 50px; position: absolute; text-align: right; }
#seat2Pot { top: 190px; left: 530px; width: 50px; position: absolute; text-align: right; }
#seat3Pot { top: 280px; left: 525px; width: 50px; position: absolute; text-align: right; }