style(#2239): fix popup height

keep-around/3189b32b0ce61b4342bca70f0fdab45b7ed3dfef
Andrei Dekterev 4 years ago
parent 396f7291b8
commit 893978323c
  1. 3
      src/features/ItemsList/styled.tsx
  2. 2
      src/features/PreferencesPopup/components/TournamentInfo/index.tsx
  3. 44
      src/features/TournamentsPopup/styled.tsx

@ -92,9 +92,6 @@ export const TeamOrCountry = styled(NameBase)`
font-size: 0.625rem; font-size: 0.625rem;
line-height: 0.75rem; line-height: 0.75rem;
color: rgba(255, 255, 255, 0.7); color: rgba(255, 255, 255, 0.7);
:hover {
text-decoration: none;
}
${isMobileDevice ${isMobileDevice
? css` ? css`
font-size: 10px; font-size: 10px;

@ -43,7 +43,7 @@ type Props = {
export const TournamentInfo = ({ isIcon, tournament }: Props) => ( export const TournamentInfo = ({ isIcon, tournament }: Props) => (
<Wrapper> <Wrapper>
<StyledName nameObj={tournament} /> <StyledName nameObj={tournament} className='title' />
<ItemInfo> <ItemInfo>
{isIcon && <SportIcon sport={tournament.sport} />} {isIcon && <SportIcon sport={tournament.sport} />}
<Flag src={`https://instatscout.com/images/flags/48/${tournament.country.id}.png`} /> <Flag src={`https://instatscout.com/images/flags/48/${tournament.country.id}.png`} />

@ -10,20 +10,38 @@ import { customScrollbar } from 'features/Common'
import { HeaderTitle } from 'features/PreferencesPopup/styled' import { HeaderTitle } from 'features/PreferencesPopup/styled'
export const ScModalContainer = styled(BaseModal)` export const ScModalContainer = styled(BaseModal)`
background-color: rgba(0, 0, 0, 0.7);
padding: 0 60px;
${ModalWindow} { ${ModalWindow} {
width: 616px; width: 679px;
max-height: 95vh; height: 734px;
padding: 0;
background-color: #333333;
border-radius: 5px;
overflow-y: auto; overflow-y: auto;
${customScrollbar} ${customScrollbar}
@media (max-width: 1370px) {
max-width: 679px;
height: auto;
}
${isMobileDevice ${isMobileDevice
? css` ? css`
width: 95vw; @media (max-width: 650px){
` width: 95vw;
: '' height: auto;
}; top: -7vh;
} }
@media (orientation: landscape){
min-width: 95vw;
}
`
: ''};
} }
` `
@ -57,14 +75,13 @@ export const ScHeaderTitle = styled(HeaderTitle)`
` `
export const ScTournamentList = styled.div` export const ScTournamentList = styled.div`
width: 50%; width: 100%;
margin-bottom: 20px; margin-bottom: 20px;
` `
export const ScList = styled.div` export const ScList = styled.div`
max-width: 212px; max-width: 212px;
margin-top: 20px; margin-top: 20px;
overflow-y: scroll;
` `
export const StyledLink = styled(ProfileLink)` export const StyledLink = styled(ProfileLink)`
@ -75,10 +92,13 @@ export const StyledLink = styled(ProfileLink)`
color: white; color: white;
padding: 10px; padding: 10px;
&:hover { :hover {
text-decoration: underline;
background-color: #2d323d; background-color: #2d323d;
border-radius: 2px; border-radius: 2px;
& .title {
text-decoration: underline;
}
} }
` `

Loading…
Cancel
Save