hide empty legend if one of the 2 legends is empty

When only 1 of the 2 layers in the swipe has a legend, this hides the "no legend" text. It also lets the remaining legend take up whole legend width to minimize any text wrapping.