Phase-field modeling of bubble growth and flow in a Hele-Shaw cell