More facts are needed to be more specific.
However, the terms set forth in the Retainer Agreement between the plaintiff and her attorney will control how much is received by the client.
Typically, in a typical contingent fee case (attorney fees are paid from any recovery by trial or by settlement), all costs not already paid by the client are deducted from the settlement amount. Then, the percent of the attorney's contingent fee is deducted from that remainder. The rest is paid to the client.
However, in a civil rights case, brought under 42 USC section 1983, the prevailing party may ask the court for an order that requires the losing side to pay attorney fees and costs. If that is granted, that means typically the contingent fee to be paid to the attorney is (or should be) credited dollar for dollar so that the attorney is not being paid twice.
I hope this helps, and good luck!