correcting rtl alignment when modal reduced