In my dynamic ionic 2 grid system, I am facing a layout issue.
<div>
<ion-row>
<ion-col > ;
<ion-card-header class="card-header">
{{hunt.title}}
</ion-card-header>
</ion-col>
<ion-col *ngIf="!hunt.claims.length" > ;
<button ion-fab mini class="new-claim">
<ion-icon name="disc"></ion-icon>
</button>
</ion-col>
</ion-row>
</div>
The challenge is to ensure visibility of all content while utilizing the available space efficiently. When there are claims present, a fab button needs to be accommodated next to the title. However, if the title is too long, it extends out of the visible area outside the div
.
One solution could be setting a fixed width (e.g., width-80
) for the title column. This would prevent overflow when the title is long, but it may not utilize the full space when there are no claims. How can I modify the layout so that all contents are visible within the available space, and any title overflow is hidden?