Fixed #2496: show ellipsis properly if the text overflows
Merge pull request #2829 from dinhviethoa/2496-root-directory-ellipsis

show ellipsis properly if the text overflows in root directory settings