I'm painting the response of a service inside a modal with innerHTML. But this is not respecting the width of the modal itself and is writing in the same line to infinity.
The modal is a bootstrap ngbModal link
Has anyone had to deal with this at any time? I've tried to set a width to modal-content
but it has not worked.
The way I paint the text is:
<div [innerHTML]="info.text1"></div>
<div>
<div class="modal-content">
<div class="modal-header">
<h4 class="title">Prueab</h4>
</div>
<div class="modal-body">
<div [innerHTML]="info.text1">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger button-close" (click)="close()"> CLOSE </button>
</div>
I update with the modal HTML. In css I do not have anything yet, I just tried with .modal-body { width: 100px; }