Our reaction tooltip has texts with two different font sizes (see image below for context) to accomamodate for this I upaddated `calculateMaxTextWidth` to consider differnetent font sizes so that we can use this function when we introduce the reaction toolitptip
{F690985}
Depends on D8829