browser: make the calculation of files-per-line a straightforward one

There is no need to iterate through all the file names, as we already
know the length of the longest.  From this it's easy to calculate how
many names fit on a line.
1 file changed