I need the "foo bar hello world" text (or whatever length text / dynamic length) to be left-aligned but also not have white-space on the right.
My code:
<div style="padding-left: 100px; padding-top: 100px">
<div style="width: 50px; height: 50px;">
<button style="width: 100%; height: 100%;" [ngbPopover]="tipContent" placement="bottom" autoClose="outside">Click Me</button>
</div>
</div>
<ng-template #tipContent>
<div style=" display:inline-block; height: 100%; width: auto; max-width: 100px;">
<div style=" height: 100%; text-align: left; vertical-align: center;
overflow: hidden; max-width: 200px;">
foo bar hello world
</div>
</div>
</ng-template>
I've created a stackblitz replicating my issue here:
https://stackblitz.com/edit/ngb-popover-vs-tooltip-wbghhh?file=src/my-app.component.html