Refactor the unit info menu rendering a bit to size things based on the viewport.