🐛 Fix bug with Downloadmodule width

This commit is contained in:
ajnart
2022-08-08 13:46:14 +02:00
parent 1e69e3a2b0
commit 772fe7622d

View File

@@ -189,8 +189,7 @@ export default function DownloadComponent() {
}); });
return ( return (
<Stack mt="xl"> <ScrollArea mt="xl" sx={{ height: 300, width: '100%' }}>
<ScrollArea sx={{ height: 300 }}>
{rows.length > 0 ? ( {rows.length > 0 ? (
<Table highlightOnHover> <Table highlightOnHover>
<thead>{ths}</thead> <thead>{ths}</thead>
@@ -198,14 +197,9 @@ export default function DownloadComponent() {
</Table> </Table>
) : ( ) : (
<Center style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}> <Center style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
<Image <Image fit="cover" height={300} src="https://danjohnvelasco.github.io/images/empty.png" />
fit="cover"
height={300}
src="https://danjohnvelasco.github.io/images/empty.png"
/>
</Center> </Center>
)} )}
</ScrollArea> </ScrollArea>
</Stack>
); );
} }