Client: PortalSettings: StorageManagement: Added display of progress if it is too small.
This commit is contained in:
parent
d53503e726
commit
9b655b3365
@ -145,8 +145,9 @@ const StyledDiagramComponent = styled.div`
|
||||
|
||||
const StyledFolderTagSection = styled.div`
|
||||
height: 12px;
|
||||
border-right: ${(props) =>
|
||||
`1px solid ${props.theme.client.settings.payment.backgroundColor}`};
|
||||
${(props) =>
|
||||
props.width !== 0 &&
|
||||
`border-right: 1px solid ${props.theme.client.settings.payment.backgroundColor}`};
|
||||
background: ${(props) => props.color};
|
||||
width: ${(props) => props.width + "%"};
|
||||
|
||||
|
@ -63,7 +63,9 @@ const getTags = (
|
||||
const item = catalogs[key];
|
||||
const { usedSpace, title } = item;
|
||||
|
||||
const percentageSize = calculateSize(usedSpace, commonSize);
|
||||
let percentageSize = calculateSize(usedSpace, commonSize);
|
||||
if (percentageSize < 0.05 && percentageSize !== 0) percentageSize = 0.5;
|
||||
|
||||
const size = getConvertedSize(t, usedSpace);
|
||||
|
||||
array.push({
|
||||
|
Loading…
Reference in New Issue
Block a user