Galooshi / happo

Visual diffing in CI for user interfaces
504 stars 16 forks source link

[Bug] Options dropdown menu (•••) is too large #218

Closed nebs closed 6 years ago

nebs commented 6 years ago

There's only one option but the box looks like it's sized to show 2 options.

screen shot 2017-11-09 at 4 08 40 pm screen shot 2017-11-09 at 4 14 22 pm

Noticed in this brigade link: https://happo.io/compare?q=ce2663c2717eb5304b141b4cbc618e76001872f9..c705436d56c14b2e24cc025b4b61044439ba981b&a=3#

trotzig commented 6 years ago

Thanks for finally getting that issue title right! 😉

I was planning to add more to this menu, but it never happened. I wonder if it would be best to remove the overflow icon and use a different icon instead, taking action on click? I kind of want the "Mark as equal" action to be a few clicks out though, as it's not something you'd do very often.

nebs commented 6 years ago

I think keeping the overflow makes sense, even if it's just one option. Besides providing a buffer it also makes it more clear because this is a non-standard action so using an icon might not be very clear (people will probably hover and wait for the tooltip anyway).

The icon pattern could work if you show a confirmation toast when it's pressed and allow users to undo the action by pressing the icon again. That way the cost of not knowing what the icon does is minimal.

trotzig commented 6 years ago

I removed the min-height on the dropdown now. Thanks for the report @nebs!