From 11d629ea0781bf4e989991bd02001149a29f5e87 Mon Sep 17 00:00:00 2001 From: Yann Bizeul Date: Sat, 3 Aug 2024 11:24:29 +0200 Subject: [PATCH] fix: make content more responsive --- html/src/Components/ItemComponent.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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