💄 Update popover style

This commit is contained in:
ajnart
2023-01-20 12:55:50 +09:00
parent 7a72457971
commit efbc6f0423

View File

@@ -2,7 +2,6 @@
import { NormalizedTorrent } from '@ctrl/shared-torrent'; import { NormalizedTorrent } from '@ctrl/shared-torrent';
import { import {
Badge, Badge,
Divider,
Flex, Flex,
Group, Group,
List, List,
@@ -11,7 +10,6 @@ import {
Progress, Progress,
Stack, Stack,
Text, Text,
Title,
useMantineTheme, useMantineTheme,
} from '@mantine/core'; } from '@mantine/core';
import { useDisclosure, useElementSize } from '@mantine/hooks'; import { useDisclosure, useElementSize } from '@mantine/hooks';
@@ -19,6 +17,7 @@ import {
IconAffiliate, IconAffiliate,
IconDatabase, IconDatabase,
IconDownload, IconDownload,
IconFileInfo,
IconInfoCircle, IconInfoCircle,
IconPercentage, IconPercentage,
IconSortDescending, IconSortDescending,
@@ -134,7 +133,7 @@ const TorrentQueuePopover = ({ torrent, app }: TorrentQueueItemProps) => {
}; };
return ( return (
<Stack spacing="xs" justify="space-evenly"> <Stack spacing="xs">
{app && ( {app && (
<Group spacing={3}> <Group spacing={3}>
<Text size="xs" color="dimmed"> <Text size="xs" color="dimmed">
@@ -146,8 +145,18 @@ const TorrentQueuePopover = ({ torrent, app }: TorrentQueueItemProps) => {
</Text> </Text>
</Group> </Group>
)} )}
<Title order={5}>{torrent.name}</Title>
<List> <List>
<List.Item icon={<IconFileInfo size={16} />}>
<Text
style={{
display: 'inline-block',
wordBreak: 'break-word',
}}
>
{torrent.name}
</Text>
</List.Item>
<List.Item icon={<IconAffiliate size={16} />}> <List.Item icon={<IconAffiliate size={16} />}>
<RatioMetric /> <RatioMetric />
</List.Item> </List.Item>