i've create a grid of 24x64 nodes where rows are 24 and cols are 64. but the problem is whenever i open the console window nodes are overlapping with each other.
i want to resize all nodes automatically as window size changes can anyone help?
grid.jsx
const Grid = ({ grid }) => {
return (
<div className="grid">
{grid.map((row, rowIdx) => {
return (
<div className="cur-row" key={rowIdx}>
{row.map((node) => (
<Node node={node} />
))}
</div>
);
})}
</div>
);
};
node.jsx
const Node = ({ node }) => {
return (
<div className="node"></div>
);
};
css file
.grid {
overflow: hidden;
position: absolute;
left: 20px;
align-content: flex-start;
justify-content: center;
margin-top: 50px;
}
.cur-row {
height: 23px;
}
.node {
width: 23px;
height: 23px;
border: 1px solid rgb(175, 216, 248);
display: inline-block;
}
this is grid when the run the app. 
this is the grid when i open the console window
as you can see some nodes are overlapping with other nodes.
i want all the nodes resize according to the window size. can anyone help?