diff --git a/client/cryps.css b/client/cryps.css index d3e6830e..4b98de1e 100644 --- a/client/cryps.css +++ b/client/cryps.css @@ -129,6 +129,7 @@ img { max-height: 100%; width: auto; height: auto; + pointer-events: none; } /* @@ -681,10 +682,22 @@ table td svg { } .combat-text { - position: fixed; - top: 50%; fill: whitesmoke; + font-size: 2em; font-family: 'Jura'; + position: absolute; + top: 50%; + left: 50%; + text-align: center; +} + +.team-opponent .combat-text { + left: 40%; + transform: translate(-50%, -50%); +} + +.img { + position: relative; } .team-player { diff --git a/client/src/components/body.component.jsx b/client/src/components/body.component.jsx index 6f393fd7..95c45c5e 100644 --- a/client/src/components/body.component.jsx +++ b/client/src/components/body.component.jsx @@ -10,19 +10,6 @@ const InstanceContainer = require('./instance.container'); const addState = connect( state => { const { game, instance, ws, account } = state; - - if (!game) { - ws.clearGameStateTimeout(); - } else { - ws.startGameStateTimeout(game.id); - } - - if (!instance) { - ws.clearInstanceStateTimeout(); - } else { - ws.startInstanceStateTimeout(instance.id); - } - return { game, instance, account }; } ); diff --git a/client/src/components/game.component.jsx b/client/src/components/game.component.jsx index 36042656..72c05864 100644 --- a/client/src/components/game.component.jsx +++ b/client/src/components/game.component.jsx @@ -143,7 +143,6 @@ function GamePanel(props) { )); const combatText = getCombatText(cryp, resolution); - const combatTextEl = combatText ?