refactor(tooltip): combine autoplace ifs and chain if statements together