When utilizing the ion-header-bar
directive, I have the left side designated as class="button"
, the middle section containing <h1>
with the word "Recent", and the right side as <ng-icon>
.
The text on the left side is dynamically generated using i18
, causing the middle section to shift right (it works well when the left side is set as constant text).
<ion-header-bar class="bar bar-header bar-stable" no-tap-scroll="true">
<a class="button icon-left ion-chevron-left button-clear button-positive">{{'homePage' | i18n}}
</a>
<h1 class="title">Recent</h1>
<ng-icon type="messenger-left-header-icons" non-pressable="true" class="icon_plus"></ng-icon>
</ion-header-bar>
When it works well -
https://i.sstatic.net/tfDc2.jpg
When it doesn't work well -
https://i.sstatic.net/Ewzm8.jpg
How can I resolve this issue with dynamic text included?