To say the truth, I see no reasonable way to handle long filenames. To begin with, I've just implemented the simplest one - reducing the filename length till it fits the page width (see screenshots of the same folder at two orientations, i.e. various page widths)


If you have better idea, please, do not hesitate to share it here.