commit ecaadee0ca3d0de385a746ae024c121548240921 parent 330251232a7d564e56f121409317efef1f7f5eb8 Author: n0tr1v <n0tr1v@protonmail.com> Date: Wed, 27 Dec 2023 16:24:09 -0500 cleanup Diffstat:
| M | pkg/web/handlers/poker/poker.go | | | 11 | ++--------- |
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -2070,17 +2070,10 @@ func getPokerEventHtml(payload PokerEvent, animationTime string) string { transform += ";" pokerEvtHtml := `<style>` if payload.ID1 != "" { - pokerEvtHtml += ` - #` + payload.ID1 + ` { - z-index: ` + itoa(payload.ZIdx+1) + `; - }` + pokerEvtHtml += `#` + payload.ID1 + ` { z-index: ` + itoa(payload.ZIdx+1) + `; }` } pokerEvtHtml += ` -#` + payload.ID + ` { - z-index: ` + itoa(payload.ZIdx) + `; - transition: ` + animationTime + ` ease-in-out; - ` + transform + ` -} +#` + payload.ID + ` { z-index: ` + itoa(payload.ZIdx) + `; transition: ` + animationTime + ` ease-in-out; ` + transform + ` } #` + payload.ID + ` .card .inner:before { content: "` + payload.Name + `"; color: ` + colorForCard(payload.Name) + `; } </style>` return pokerEvtHtml