Explorar o código

Making the timer properly centered

Kirk Trombley %!s(int64=5) %!d(string=hai) anos
pai
achega
3060994b97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ui/src/components/round-timer.component.jsx

+ 1 - 1
ui/src/components/round-timer.component.jsx

@@ -35,7 +35,7 @@ class RoundTimer extends React.Component {
     const { remaining } = this.state;
     const { style } = this.props;
     return (
-      <div style={{ display: "flex", justifyContent: "center", ...style }}>
+      <div style={{ display: "flex", justifyContent: "center", alignItems: "center", ...style }}>
         {remaining > 0 ? <p>Time: {ms(remaining * 1000)}</p> : <p>Time's up!</p>}
       </div>
     );