The fix is not perfect, as instead of wrapping, there could be a small overlap of the name on the size column. That's far less serious than the original issue though, as that column is empty for directories and the problem only occurs for directories, AFAICT.
Fixes #5277.