diff --git a/src/components/avatar.jsx b/src/components/avatar.jsx index 5f0b8b8..0018d04 100644 --- a/src/components/avatar.jsx +++ b/src/components/avatar.jsx @@ -61,10 +61,9 @@ const HealthBar = styled("div")(({ color }) => ({ const CauseOfDeath = styled("div")(({ theme }) => ({ width: "100%", - height: "2.2rem", - padding: ".2rem 0", + marginTop: "0.2rem", fontSize: "1rem", - lineHeight: "1.3rem", + lineHeight: "1rem", color: theme === themes.dark ? colors.lightText : colors.darkText })); @@ -76,27 +75,25 @@ class Avatar extends React.Component { {this.props.snake.name} {this.props.snake.body.length} + + by {this.props.snake.author} + + {this.props.snake.latency} ms + + {this.props.snake.death ? ( {getReadableCauseOfDeath(this.props.snake.death)} ) : ( -
- - by {this.props.snake.author} - - {this.props.snake.latency} ms - - - - - -
+ + + )} );