1. Hide button text when there is not enough space 2. Use different flows for vertical panels and horizontal panels