The tab header displays scrolling that updates when the header is initialized or when tabs are removed/added. This misses the case where the tab label's text changes and the scrolling should reflect the update.
Add a MutationObserver that notifies changes to the text node and lets the scrolling react to the change.