Revert "feat(ott-2842): fixes"

This reverts commit e8070b489f.
keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Andrei Dekterev 3 years ago
parent 555a194b6b
commit ffcc37ce69
  1. 5
      src/features/MatchPage/styled.tsx
  2. 7
      src/features/MatchSidePlaylists/components/TabVideo/components/VideoDate/styled.tsx
  3. 2
      src/features/MatchSidePlaylists/components/TabVideo/styled.tsx
  4. 10
      src/features/MatchSidePlaylists/styled.tsx
  5. 4
      src/features/StreamPlayer/styled.tsx
  6. 1
      src/features/UserFavorites/styled.tsx

@ -4,7 +4,7 @@ import { devices } from 'config/devices'
import { isMobileDevice } from 'config/userAgent' import { isMobileDevice } from 'config/userAgent'
export const Wrapper = styled.div` export const Wrapper = styled.div`
width: 96%; width: 100%;
height: calc(100vh - 115px); height: calc(100vh - 115px);
margin: 20px 0px 0 10px; margin: 20px 0px 0 10px;
display: flex; display: flex;
@ -27,7 +27,8 @@ export const Wrapper = styled.div`
` `
export const Container = styled.div` export const Container = styled.div`
min-width: 83%; width: 100%;
max-width: 2090px;
max-height: 896px; max-height: 896px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;

@ -7,11 +7,10 @@ export const Wrapper = styled.div`
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding-bottom: 10px; margin-bottom: 10px;
height: 5%;
> :not(:last-child) { > :not(:last-child) {
margin-right: 2%; margin-right: 20px;
} }
${isMobileDevice ? css` ${isMobileDevice ? css`
@ -28,7 +27,7 @@ export const WeekDay = styled.div.attrs(() => ({
}))<{isActive?: boolean}>` }))<{isActive?: boolean}>`
position: relative; position: relative;
color: rgba(255, 255, 255, 0.5); color: rgba(255, 255, 255, 0.5);
font-size: 0.6rem; font-size: 12px;
white-space: nowrap; white-space: nowrap;
padding: 5px; padding: 5px;
cursor: pointer; cursor: pointer;

@ -4,7 +4,7 @@ import { isMobileDevice } from '../../../../config/userAgent'
export const MatchesWrapper = styled.div` export const MatchesWrapper = styled.div`
overflow-y: auto; overflow-y: auto;
height: 95%; max-height: calc(100vh - 170px);
padding-right: 5px; padding-right: 5px;
> * { > * {

@ -6,8 +6,6 @@ import { isMobileDevice } from 'config/userAgent'
import { customScrollbar } from 'features/Common' import { customScrollbar } from 'features/Common'
export const Wrapper = styled.div` export const Wrapper = styled.div`
min-width: 17%;
max-height: 896px;
${isMobileDevice ${isMobileDevice
? css` ? css`
overflow-y: auto; overflow-y: auto;
@ -21,7 +19,6 @@ export const Wrapper = styled.div`
export const TabsWrapper = styled.div` export const TabsWrapper = styled.div`
padding-left: 14px; padding-left: 14px;
padding-right: 18px; padding-right: 18px;
height: 4%;
${isMobileDevice ${isMobileDevice
? css` ? css`
@ -35,10 +32,11 @@ type TContainer = {
} }
export const Container = styled.div<TContainer>` export const Container = styled.div<TContainer>`
padding: 14px 10px 0 14px; width: 320px;
height: 96%; margin-top: 14px;
padding: 0 10px 0 14px;
max-height: calc(100vh - 130px); max-height: calc(100vh - 130px);
overflow: ${({ forVideoTab }) => (forVideoTab ? 'hidden' : 'auto')}; overflow-y: ${({ forVideoTab }) => (forVideoTab ? 'hidden' : 'auto')};
${customScrollbar} ${customScrollbar}

@ -93,7 +93,7 @@ export const ControlsGroup = styled.div`
: ''}; : ''};
` `
const supportsAspectRatio = CSS.supports('aspect-ratio', '16 / 9') const supportsAspectRatio = CSS.supports('aspect-ratio', '16 / 9') && isMobileDevice
export const PlayerWrapper = styled.div<PlayStopProps>` export const PlayerWrapper = styled.div<PlayStopProps>`
width: 100%; width: 100%;
@ -107,7 +107,7 @@ export const PlayerWrapper = styled.div<PlayStopProps>`
? css`aspect-ratio: 16 / 9;` ? css`aspect-ratio: 16 / 9;`
: css` : css`
height: 0px; height: 0px;
object-fit: cover; padding-top: 56.25%;
`} `}
${isMobileDevice ${isMobileDevice

@ -19,7 +19,6 @@ export const UserSportFavWrapper = styled.aside`
top: 0; top: 0;
bottom: 0; bottom: 0;
z-index: 10; z-index: 10;
width: 4%;
${isMobileDevice ${isMobileDevice
? css` ? css`

Loading…
Cancel
Save