Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 7e6f22e

Browse files
committed
refactor(media-query): make video thread looks right
1 parent a52132e commit 7e6f22e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

components/VideoSourceInfo/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ICON_CMD } from 'config'
1313
import { makeDebugger } from 'utils'
1414
import Maybe from 'components/Maybe'
1515

16-
import { Wrapper, LinkIcon, LogoIcon } from './styles'
16+
import { Wrapper, LinkIcon, LogoIcon, Text } from './styles'
1717

1818
/* eslint-disable-next-line */
1919
const debug = makeDebugger('c:VideoSourceInfo:index')
@@ -33,7 +33,7 @@ const VideoSourceInfo = ({ value }) => (
3333
<Maybe test={R.contains(value, recommandSources)}>
3434
<LogoIcon src={`${ICON_CMD}/${value}.svg`} color={colorMaps[value]} />
3535
</Maybe>
36-
<div>{value}</div>
36+
<Text>{value}</Text>
3737
</Wrapper>
3838
)
3939

components/VideoSourceInfo/styles/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ export const LogoIcon = styled(Img)`
2525
margin-left: 2px;
2626
display: block;
2727
`
28+
29+
export const Text = styled.div`
30+
${cs.media.mobile`display: none`};
31+
`

0 commit comments

Comments
 (0)