HTML:
<ion-list *ngFor="let message of messages">
<ion-item lines="none" type="button" button="true">
<ion-grid>
<ion-row>
<ion-col class="message">
<ion-text>
{{ message.text }}
</ion-text>
</ion-col>
</ion-row>
</ion-grid>
</ion-item>
</ion-list>
CSS:
.message {
color: var(--ion-color-default-shade) !important;
border-radius: 5px;
padding: 8px;
max-height: 110px;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.4em;
}
I am trying to showcase only 3 lines of content within the <ion-text>
element, with an ellipsis to indicate that there is more content available for viewing by clicking on it. However, my current code does not seem to be displaying the HTML in ellipses as expected. I am seeking advice on what might be missing or incorrect in my implementation. Any help would be appreciated.