make hacknet node grid dynamic (#1070)

This commit is contained in:
Shy 2024-02-10 10:15:27 +01:00 committed by GitHub
parent e966e78b72
commit fbc41d0278
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -117,7 +117,7 @@ export function HacknetRoot(): React.ReactElement {
{hasHacknetServers() && <Button onClick={() => setOpen(true)}>Spend Hashes on Upgrades</Button>}
<Box sx={{ display: "grid", width: "fit-content", gridTemplateColumns: "repeat(3, 1fr)" }}>{nodes}</Box>
<Box sx={{ display: "grid", width: "100%", gridTemplateColumns: "repeat(auto-fit, 380px)" }}>{nodes}</Box>
<HashUpgradeModal open={open} onClose={() => setOpen(false)} />
</>
);