Added min-height to flex elements to ensure they properly flex within the container rathen than adjust to content. For #4466