From cdd368b6c8374ed556506a692bb5d180a2fea8c2 Mon Sep 17 00:00:00 2001 From: himself65 Date: Thu, 22 Dec 2022 12:57:16 +0800 Subject: [PATCH] fix: relative position of StyledArrowButton --- packages/app/src/components/workspace-slider-bar/style.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/components/workspace-slider-bar/style.ts b/packages/app/src/components/workspace-slider-bar/style.ts index 3f8fa216ac..064590e93d 100644 --- a/packages/app/src/components/workspace-slider-bar/style.ts +++ b/packages/app/src/components/workspace-slider-bar/style.ts @@ -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',