I am a newcomer to the world of Ionic Framework. Recently, I created a page that features a swipe-back-button located on the left side of the navigation bar. This positioning causes the title to shift slightly to the right, as demonstrated by the addition of a red background to the title.
Without the use of position: absolute:
https://i.sstatic.net/Q2lni.png
In order to center the title, I included the following CSS code:
ion-title {
font-weight: bold;
position: absolute;
top: 0;
left: 0;
padding: 0 90px 1px;
width: 100%;
height: 100%;
text-align: center;
background-color: red;
}
This method proved effective:
When using position: absolute:
https://i.sstatic.net/nwQYJ.png
The issue arises when the title ends up "covering" the swipe-back button, rendering it impossible to click on the button.
Are there any solutions to this problem? Your assistance is greatly appreciated.