Closed munhouiani closed 9 years ago
@jserv I created a new branch "shrink_tab_title" and sent a pull request. Please review.
It looks weird. I suppose that you should rebase to pcmanx/master branch. Please re-do.
@jserv I rebased to pcmanx/master branch. Please review.
Looks good. Merged.
Thanks again for your contribution.
If the title of an opened tab is too long, it will not be shown within a tab. Instead, it shows all the characters of the title and messes with the other tab title. Please see the following picture for a better problem description.
http://i.imgur.com/MPPosvb.png
This commit first checks if the the length of a title is longer than 20 characters. If so, it will shrink the title into 17 characters and add '...' at the end, 20 characters in total.
http://i.imgur.com/k8VggEN.png