I recently started using the ngx-toastr library in my project. I have a message service that displays error messages at the top-center of the screen with the following code:
@Injectable()
export class MessageService {
constructor(private toastrService: ToastrService) { }
showErrorMessage(message: string) {
this.toastrService.error(message, undefined, {
positionClass: 'toast-top-center'
});
}
}
However, I noticed that the toast is displayed without any margin at the top as shown here: https://i.sstatic.net/GHV6h.png
Any suggestions on how to solve this issue?