fixed FloatingButton component

This commit is contained in:
Mushka Nikita 2023-02-21 15:27:52 +03:00
parent c080e352b0
commit 5b8880d484
3 changed files with 8 additions and 2 deletions

View File

@ -67,7 +67,7 @@ const FloatingButton = (props) => {
}, [percent, setAnimationCompleted]);
return (
<StyledFloatingButtonWrapper>
<StyledFloatingButtonWrapper className="layout-progress-bar_wrapper">
<ColorTheme
{...props}
themeId={ThemeType.FloatingButton}

View File

@ -24,7 +24,7 @@ const StyledFloatingButtonWrapper = styled.div`
right: 77px;
bottom: 33px;
}
:hover {
&:hover {
.layout-progress-bar_close-icon {
display: block;
}

View File

@ -73,6 +73,12 @@ const StyledSectionContainer = styled.section`
max-width: 100vw !important;
`}
.layout-progress-bar_wrapper {
position: fixed;
right: ${(props) =>
props.isInfoPanelVisible && !isMobile ? "424px" : "24px"};
}
.layout-progress-bar {
position: fixed;
right: ${(props) =>