The Open Files debugger tab shows a diagram of the file descriptor / open file / vnode tables:
The size of the diagram container is currently hardcoded: https://github.com/reberhardt7/cplayground/blob/6366368c28ab820d4bad9d81eed5012469339747/src/client/components/Diagram.tsx#L82
That means that if there are not many processes running, there's weird horizontal scrolling behavior (you can scroll really far to the right, where there's nothing showing on the diagram), and if there are a lot of processes running, then they potentially get clipped on the diagram. We should dynamically compute the width/height needed to show the diagram, and use that instead of hardcoding.
The Open Files debugger tab shows a diagram of the file descriptor / open file / vnode tables:
The size of the diagram container is currently hardcoded: https://github.com/reberhardt7/cplayground/blob/6366368c28ab820d4bad9d81eed5012469339747/src/client/components/Diagram.tsx#L82 That means that if there are not many processes running, there's weird horizontal scrolling behavior (you can scroll really far to the right, where there's nothing showing on the diagram), and if there are a lot of processes running, then they potentially get clipped on the diagram. We should dynamically compute the width/height needed to show the diagram, and use that instead of hardcoding.