Straining, fussing or crying while passing gas, stool or even urine is common in babies this young, since their abdominal muscles and nervous system are still maturing. As long as she's otherwise feeding well, gaining weight and settling afterward, this is usually not something to worry about.
Next Steps
Gentle tummy massage and bicycling her legs can ease some of the straining, and this phase typically eases over the next few weeks on its own.
Health Tips
See your paediatrician if she isn't passing stool or urine at all, her tummy looks swollen or hard, she vomits, or she seems unusually unwell.