Here's the EK explanation:
"Work is equal to the electric potential energy, qEd, where d, displacement, is parallel to the lines of force. Any movement perpendicular to the lines of force (equipotential lines) requires no work. Therefore, only the movement in the direction of the lines of force are contributory. In this case, that would be x sin(30°). The work done then is qEx sin(30°)."