🐛 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,23 +189,17 @@ 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> <tbody>{rows}</tbody>
<tbody>{rows}</tbody> </Table>
</Table> ) : (
) : ( <Center style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
<Center style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}> <Image fit="cover" height={300} src="https://danjohnvelasco.github.io/images/empty.png" />
<Image </Center>
fit="cover" )}
height={300} </ScrollArea>
src="https://danjohnvelasco.github.io/images/empty.png"
/>
</Center>
)}
</ScrollArea>
</Stack>
); );
} }