Web: Client: IndicatorLoader: fix position

This commit is contained in:
Viktor Fomin 2022-07-23 22:07:50 +03:00
parent 8152557397
commit 86337271e4

View File

@ -1,11 +1,12 @@
import React from "react";
import styled from "styled-components";
import styled, { css } from "styled-components";
import { isMobileOnly } from "react-device-detect";
const StyledWrapper = styled.div`
#ipl-progress-indicator {
position: fixed;
z-index: 390;
top: ${(props) => (props.isDesktop ? "0" : "48px")};
top: 0;
left: -6px;
width: 0%;
height: 3px;
@ -13,6 +14,11 @@ const StyledWrapper = styled.div`
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 1px;
${isMobileOnly &&
css`
top: 48px;
`}
}
`;