mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
fix: relative position of StyledArrowButton
This commit is contained in:
@@ -28,9 +28,9 @@ export const StyledArrowButton = styled.button<{ isShow: boolean }>(
|
|||||||
backgroundColor: theme.colors.hoverBackground,
|
backgroundColor: theme.colors.hoverBackground,
|
||||||
borderRadius: '50%',
|
borderRadius: '50%',
|
||||||
transition: 'all .15s',
|
transition: 'all .15s',
|
||||||
position: 'fixed',
|
position: 'relative',
|
||||||
top: '34px',
|
top: '34px',
|
||||||
left: isShow ? '304px' : '-8px',
|
left: isShow ? '-16px' : '-8px',
|
||||||
zIndex: theme.zIndex.modal,
|
zIndex: theme.zIndex.modal,
|
||||||
svg: {
|
svg: {
|
||||||
transform: isShow ? 'rotate(180deg)' : 'unset',
|
transform: isShow ? 'rotate(180deg)' : 'unset',
|
||||||
|
|||||||
Reference in New Issue
Block a user