Shorten patient tab title conditionally (based on width)