A Lorentz force can just be generated at places where the current and the magnetic field is non-zero. So the parts of the wire which are not immersed in the magnetic field don't give any contribution.
You can calculate the force by just going over to the continuous formulation of the Lorentz force law:
$$ \vec{f}=\vec{j} \times \vec{B}$$
If all quantities are assumed to be homogeneous over the regions of space you indicated (especially the current over the wire) the force per length is given by:
$\frac{\vec{F}}{L}=A \cdot \vec{j} \times \vec{B}$, where A is the area of a cut through the wire where $j\neq0$ and $B\neq 0$. (In your drawing this is the area which you can imagine as a horizontal line inside both boxes.)
So in the second case the force would be indeed smaller.
But there is another pretty essential effect taking place here: The Lorentz force is a force on electrons moving in the wire. So effectively the Lorentz force will push all moving electrons into the region where there is no magnetic field and the wire will not be subject to a force. (Assuming the right direction for the $B$-field. Check it yourself! For other directions of the field it might also cause that the wire is sucked in and will be completely covered by the magnetic field.)
edit: This will in turn lead to a increased charge density in the right part of the wire, so again: There is a force on the wire, effectively as large as previously calculated.