Is 1.4mm Pad Distance at Optocoupler Pins for 230V/50Hz Mains Detector Enough?
Yes, there is only about 1.2V peak between the pins, what you need to worry about is creepage across the isolation barrier.