Correct the text-overflow for long filenames

[fixes #58897450]