mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
✨ Add a ScrollArea to the Downloads module
This commit is contained in:
@@ -1,4 +1,13 @@
|
|||||||
import { Table, Text, Tooltip, Title, Group, Progress, Skeleton } from '@mantine/core';
|
import {
|
||||||
|
Table,
|
||||||
|
Text,
|
||||||
|
Tooltip,
|
||||||
|
Title,
|
||||||
|
Group,
|
||||||
|
Progress,
|
||||||
|
Skeleton,
|
||||||
|
ScrollArea,
|
||||||
|
} from '@mantine/core';
|
||||||
import { IconDownload as Download } from '@tabler/icons';
|
import { IconDownload as Download } from '@tabler/icons';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
@@ -129,12 +138,14 @@ export default function DownloadComponent() {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<Group noWrap direction="column">
|
<Group noWrap grow direction="column">
|
||||||
<Title order={4}>Your torrents</Title>
|
<Title order={4}>Your torrents</Title>
|
||||||
|
<ScrollArea sx={{ height: 300 }}>
|
||||||
<Table highlightOnHover>
|
<Table highlightOnHover>
|
||||||
<thead>{ths}</thead>
|
<thead>{ths}</thead>
|
||||||
<tbody>{rows}</tbody>
|
<tbody>{rows}</tbody>
|
||||||
</Table>
|
</Table>
|
||||||
|
</ScrollArea>
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user