fixed margins for chat main elements after displaying a modal