fix(ott-423): deleted dash moved scores (#143)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Armen 5 years ago committed by GitHub
parent df6e5c4f03
commit 07428aa2a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/features/MatchPage/MatchProfileCard/index.tsx
  2. 19
      src/features/MatchPage/MatchProfileCard/styled.tsx

@ -18,7 +18,6 @@ import {
Teams,
Score,
Tournament,
Dash,
StyledLink,
} from './styled'
@ -54,7 +53,11 @@ export const MatchProfileCard = () => {
{team1.name}
</StyledLink>
)}
<Dash />
{!isHidden && (
<Score>
{team1?.score} : {team2?.score}
</Score>
)}
{team2 && (
<StyledLink to={getProfileUrl({
id: team2.id,
@ -66,11 +69,6 @@ export const MatchProfileCard = () => {
</StyledLink>
)}
</Teams>
{!isHidden && (
<Score>
{team1?.score} : {team2?.score}
</Score>
)}
<Tournament>
<SportName
color={color}

@ -33,27 +33,12 @@ export const StyledLink = styled(Link)`
}
`
export const Dash = styled.span`
position: relative;
width: 40px;
border-bottom: 3px solid white;
margin: 0 15px;
height: fit-content;
align-self: center;
@media${devices.tablet} {
width: 16px;
border-bottom: 1px solid white;
margin: 0 4px;
}
`
export const Score = styled.div`
display: flex;
margin-left: 48px;
margin: 0 20px;
@media${devices.tablet} {
margin-left: 8px;
margin: 0 10px;
color: #EACB6F;
}
`

Loading…
Cancel
Save