mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
fix(header): safe margin when statubarPadding=0
This commit is contained in:
@ -21,7 +21,7 @@ ion-header ion-toolbar:first-child {
|
|||||||
|
|
||||||
@supports (padding-top: env(safe-area-inset-top)) {
|
@supports (padding-top: env(safe-area-inset-top)) {
|
||||||
ion-header ion-toolbar:first-child {
|
ion-header ion-toolbar:first-child {
|
||||||
/* stylelint-disable-next-line property-blacklist */
|
/* stylelint-disable-next-line property-blacklist, length-zero-no-unit */
|
||||||
padding-top: calc(env(safe-area-inset-top) + var(--ion-statusbar-padding));
|
padding-top: calc(env(safe-area-inset-top) + var(--ion-statusbar-padding, 0px));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user