fix repo-menu disappear on click-away and esc.

* fix handling events so the menu persists when right-clicking and clicking the check boxes, but goes away when clicking away.
* fix the padding on the repo menu.  and make it a bit wider for long repos some still wrap, but I didn't want to make the min-width TOO large for small screens.
* re-purposed the old directive for event handling.