Improved Guarantees for Constrained Online Convex Optimization via Self-Contraction