This fixes the change of tab positions when resizing the browser and controls the content width according to the length of tabs.