The default value flex items have for align-items is stretch. This setting makes elements fill up the entire cross axis.

Make sure to pick stretch.