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;
|
padding: 0;
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
|
|
||||||
|
min-height: 3.2rem;
|
||||||
|
line-height: 1;
|
||||||
|
|
||||||
order: map-get($toolbar-order-ios, 'back-button');
|
order: map-get($toolbar-order-ios, 'back-button');
|
||||||
overflow: inherit;
|
overflow: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-button-icon {
|
.back-button-icon {
|
||||||
padding-right: 8px;
|
font-size: 3.2rem;
|
||||||
|
padding-right: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
display: none;
|
display: none;
|
||||||
&.show-back-button {
|
&.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-size: $toolbar-ios-title-font-size;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-top: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-button {
|
.back-button {
|
||||||
|
@ -104,8 +104,14 @@ export class Toolbar extends ToolbarBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onIonInit() {
|
onIonInit() {
|
||||||
|
// TODO: THIS IS HORRIBLE, FIX
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.alignTitle()
|
this.alignTitle();
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.alignTitle()
|
||||||
|
}, 64);
|
||||||
|
|
||||||
}, 32);
|
}, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user