feat(ott-2843): fix star position

keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Ruslan Khayrullin 3 years ago
parent d540aa9ce0
commit c114a55e6c
  1. 10
      src/features/TournamentList/components/CollapseTournament/index.tsx
  2. 9
      src/features/TournamentList/components/CollapseTournament/styled.tsx
  3. 6
      src/libs/objects/Star.tsx

@ -73,15 +73,15 @@ export const CollapseTournament = ({
<CountryFlag <CountryFlag
src={`https://instatscout.com/images/flags/48/${countryId}.png`} src={`https://instatscout.com/images/flags/48/${countryId}.png`}
/> />
</FirstInfo>
<SecondaryInfo>
<TournamentName nameObj={tournament} />
{isFavorite && ( {isFavorite && (
<FavoriteSign marginLeft={12} color='rgba(255, 255, 255, 0.5)'> <FavoriteSign color='rgba(255, 255, 255, 0.5)'>
<Icon refIcon='Star' /> <Icon refIcon='Star' />
</FavoriteSign> </FavoriteSign>
)} )}
</FirstInfo>
<SecondaryInfo>
<TournamentName nameObj={tournament} />
</SecondaryInfo> </SecondaryInfo>
<CountMatches> <CountMatches>
{tournamentMatches.length} {tournamentMatches.length}

@ -202,17 +202,14 @@ export const TournamentLogo = styled(ProfileLogo)`
type FavoriteSignProps = { type FavoriteSignProps = {
color?: string, color?: string,
marginLeft?: number,
} }
export const FavoriteSign = styled.span<FavoriteSignProps>` export const FavoriteSign = styled.span<FavoriteSignProps>`
margin-left: ${({ marginLeft = 9 }) => marginLeft}px; margin-left: 0.567rem;
color: ${({ color }) => color}; color: ${({ color }) => color};
display: flex; display: flex;
transform: translateY(25%);
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 8px; width: 10px;
height: 8px; height: 10px;
margin-bottom: 7px;
` `

@ -1,10 +1,10 @@
export const Star = () => ( export const Star = () => (
<svg <svg
xmlns='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg'
width='8' width='10'
height='8' height='10'
fill='none' fill='none'
viewBox='0 0 8 8' viewBox='0 0 10 10'
> >
<path <path
fill='currentColor' fill='currentColor'

Loading…
Cancel
Save