Place the popup on either the left or right side of the day

Fixes overflow on smaller screens (such as my laptop's)