Allow the hiding of labels when there is limited space in window button
Rather than showing labels when there is limited space
hide the labels and fit as many that can fit, as the icons and tooltips is sufficient for identification, and others can appear in the overflow menu