mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
toolbar fixes
This commit is contained in:
@ -15,12 +15,16 @@ $navbar-ios-height: 4.4rem !default;
|
||||
padding: 0;
|
||||
margin: 0 4px;
|
||||
|
||||
min-height: 3.2rem;
|
||||
line-height: 1;
|
||||
|
||||
order: map-get($toolbar-order-ios, 'back-button');
|
||||
overflow: inherit;
|
||||
}
|
||||
|
||||
.back-button-icon {
|
||||
padding-right: 8px;
|
||||
font-size: 3.2rem;
|
||||
padding-right: 7px;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
display: none;
|
||||
&.show-back-button {
|
||||
display: inline-flex;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,7 @@ $toolbar-ios-title-font-size: 1.7rem !default;
|
||||
font-size: $toolbar-ios-title-font-size;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.back-button {
|
||||
|
@ -104,8 +104,14 @@ export class Toolbar extends ToolbarBase {
|
||||
}
|
||||
|
||||
onIonInit() {
|
||||
// TODO: THIS IS HORRIBLE, FIX
|
||||
setTimeout(() => {
|
||||
this.alignTitle();
|
||||
|
||||
setTimeout(() => {
|
||||
this.alignTitle()
|
||||
}, 64);
|
||||
|
||||
}, 32);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user