bugfix elements with text not wrapping line sometimes
adding horizontal padding in elements with text