fix: relative position of StyledArrowButton

This commit is contained in:
himself65
2022-12-22 12:57:16 +08:00
committed by DarkSky
parent 93e74af60b
commit cdd368b6c8
@@ -28,9 +28,9 @@ export const StyledArrowButton = styled.button<{ isShow: boolean }>(
backgroundColor: theme.colors.hoverBackground,
borderRadius: '50%',
transition: 'all .15s',
position: 'fixed',
position: 'relative',
top: '34px',
left: isShow ? '304px' : '-8px',
left: isShow ? '-16px' : '-8px',
zIndex: theme.zIndex.modal,
svg: {
transform: isShow ? 'rotate(180deg)' : 'unset',