In my angular app using ng-bootstrap v4.2.1 on an older codebase, I have successfully created a tooltip with some very long sentences as content. I am trying to make the tooltip 800px wide, but when I set the width, only the first few words fill the space. Here is the relevant code:
HTML:
<button type="button" placement="bottom" ngbTooltip=" {{Description}}" tooltipClass ="description" style="padding: 0; font-size: 1.2em; margin: 0; border: none; background-color: transparent;">
<i class="fal fa-info-circle" style="color: #757575;" ></i>
</button>
TS:
let Description:string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut dignissim orci, eu feugiat nisi. Aliquam consequat condimentum tortor, ut ullamcorper lacus vestibulum eu. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec id purus in massa imperdiet egestas. Ut purus purus, venenatis a egestas quis, fermentum quis dolor. Duis porttitor, ipsum et molestie fringilla, neque enim bibendum ante, nec tincidunt augue urna vitae risus.
CSS:
.description .tooltip-inner {
margin-top: 4px;
width: 800px;
word-wrap: break-word;
text-align: left;
white-space: normal;
}
I have experimented with various values for white-space and word-wrap, but I am still unable to solve the issue.