This is by far more complex than it seem
Dashboard use block size to calculate the exact size of each node, group, that create a absolute number for width and height in css.
In html world, inline css decide all, so you cant do anything.
A “hack” is a mobile screen seem fit for a group width of 6-8 block, with default block size. You could test more to find the best suitable for your screen