Client: PortalSettings: StorageManagement: Added display of progress if it is too small.

This commit is contained in:
Tatiana Lopaeva 2024-04-02 12:59:53 +03:00
parent d53503e726
commit 9b655b3365
2 changed files with 6 additions and 3 deletions

View File

@ -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 + "%"};

View File

@ -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({