[composer] Prevent overlap of vertical ruler markings