show ellipsis properly if the text overflows in root directory settings

Fixed #2496

TBR: @devoncarew

It's actually `text-overflow: ellipsis` + `overflow: hidden` + `white-space: nowrap`.
`text-overflow: ellipsis` is already set in some ancestor.