fix layout border bottom and flex end with an empty child