diff --git a/html/src/Components/ItemComponent.tsx b/html/src/Components/ItemComponent.tsx index 3b88647..d10a1d6 100644 --- a/html/src/Components/ItemComponent.tsx +++ b/html/src/Components/ItemComponent.tsx @@ -1,4 +1,4 @@ -import { ActionIcon, Anchor, Center, Group, Paper, rem, RingProgress, Text } from "@mantine/core"; +import { ActionIcon, Anchor, Box, Center, Flex, Paper, rem, RingProgress, Text } from "@mantine/core"; import { IconCheck } from "@tabler/icons-react"; import { QueueItem } from "../UploadQueue"; import { humanFileSize, Item } from "../hupload"; @@ -13,8 +13,9 @@ export function ItemComponent(props: {item?: Item, queueItem?: QueueItem}) { return ( - - {loggedIn&&!queueItem?{fileName}:{fileName}} + + {loggedIn&&!queueItem?{fileName}:{fileName}} + {queueItem? : - + {(100*queueItem.loaded/queueItem.total).toFixed(0) + '%'} } /> :item&& - {humanFileSize(item.ItemInfo.Size)}} - - + {humanFileSize(item.ItemInfo.Size)} + } + + + )} \ No newline at end of file