fix(#219): fixed play pause button bug

fix(#219): fixed play btn clickable area
pull/24/head
Farber Denis 3 years ago committed by Andrei Dekterev
parent 269ddad403
commit 765eacc9a6
  1. 7
      src/features/StreamPlayer/styled.tsx

@ -128,8 +128,7 @@ export const LoaderWrapper = styled.div<LoaderWrapperProps>`
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
z-index: 1; z-index: 1;
transition: opacity 0.3s ease-in-out; display: ${({ buffering }) => (buffering ? 'block' : 'none')};
opacity: ${({ buffering }) => (buffering ? 1 : 0)};
` `
export const ButtonBase = styled.button` export const ButtonBase = styled.button`
@ -164,7 +163,7 @@ export const PlayStop = styled(ButtonBase)<PlayStopProps>`
)}; )};
${({ size = 'sm' }) => ( ${({ size = 'sm' }) => (
css` css`
width: ${sizes[size]}px; width: 100%;
height: ${sizes[size]}px; height: ${sizes[size]}px;
` `
)}; )};
@ -233,7 +232,7 @@ export const Backward = styled(ButtonBase)<ButtonProps>`
font-weight: normal; font-weight: normal;
${({ size = 'sm' }) => ( ${({ size = 'sm' }) => (
css` css`
width: ${rewindButtonSizes.sides[size]}px; min-width: ${rewindButtonSizes.sides[size]}px;
height: ${rewindButtonSizes.sides[size]}px; height: ${rewindButtonSizes.sides[size]}px;
font-size: ${rewindButtonSizes.fontSizes[size]}px; font-size: ${rewindButtonSizes.fontSizes[size]}px;
` `

Loading…
Cancel
Save