Web: Fixed upload indicator
This commit is contained in:
parent
42eefcc5c9
commit
a5669a14eb
@ -2,7 +2,7 @@ import Base from "@docspace/components/themes/base";
|
||||
import styled, { keyframes, css } from "styled-components";
|
||||
import { desktop, tablet } from "@docspace/components/utils/device";
|
||||
import { isMobile } from "react-device-detect";
|
||||
|
||||
import { MIN_PERCENTAGE_FOR_DISPLAYING_UPLOADING_INDICATOR } from "../../constants";
|
||||
const StyledFloatingButtonWrapper = styled.div`
|
||||
@media ${desktop} {
|
||||
position: absolute;
|
||||
@ -84,7 +84,7 @@ const StyledCircle = styled.div`
|
||||
}
|
||||
|
||||
${(props) =>
|
||||
props.percent > 0
|
||||
props.percent > MIN_PERCENTAGE_FOR_DISPLAYING_UPLOADING_INDICATOR
|
||||
? css`
|
||||
.circle__mask {
|
||||
clip: rect(0px, 42px, 42px, 21px);
|
||||
|
@ -8,6 +8,8 @@ export const COOKIE_EXPIRATION_YEAR = 31536000000;
|
||||
export const ARTICLE_PINNED_KEY = "asc_article_pinned_key";
|
||||
export const LIVE_CHAT_LOCAL_STORAGE_KEY = "live_chat_state";
|
||||
export const MAX_FILE_COMMENT_LENGTH = 255;
|
||||
export const MIN_PERCENTAGE_FOR_DISPLAYING_UPLOADING_INDICATOR = 3;
|
||||
|
||||
/**
|
||||
* Enum for employee activation status.
|
||||
* @readonly
|
||||
|
Loading…
Reference in New Issue
Block a user