Browse Source

Making the timer properly centered

Kirk Trombley 5 năm trước cách đây
mục cha
commit
3060994b97
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>
     );