Why is vapour pressure not dependent on shape and size of the container? In my textbook, it's written that vapour pressure of a liquid does not depend on shape and size of a container but won't a container that provides less surface area to the liquid will have lower vapour pressure?

for example, consider 2 containers give in the diagram below, the volume of container and liquid is same in both the diagram just the shape is changed.


wouldn't the vapor pressure be lower in the diagram on the left side? and how does changing size not affect vapor pressure?
Vapor pressure does not depend on surface area because it is derived from the thermodynamic equilibrium between the liquid and gas phases of a substance. The closer the vapor pressure is to atmospheric pressure, the closer that substance is to boiling. At its boiling point, vapor pressure equals atmospheric pressure and the molecules that comprise the liquid now have enough thermal energy to overcome the intermolecular forces that are maintaining it in a condensed phase. So it might help to think about how container geometry does not affect the boiling point of a liquid; the same reasons are true for why it does not affect the vapor pressure.

The evaporation rate in terms of mass/time is absolutely a function of the container geometry, but equilibrium vapor pressure is an intrinsic molecular property.