tooltips open towards middle of screen

getting a css-only solution to flip only when going off the edge would be
difficult. this at least avoids a horizontal scrollbar.