Skip to content

Commit

Permalink
style: 安全区
Browse files Browse the repository at this point in the history
  • Loading branch information
Hello-ZH committed Sep 24, 2024
1 parent 673dee2 commit 1d637ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tab-bar/tab-bar.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
}

&--normal&--safe {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
padding-bottom: max(constant(safe-area-inset-bottom), 24rpx);
padding-bottom: max(env(safe-area-inset-bottom), 24rpx);
}

&--round {
Expand All @@ -40,7 +40,7 @@
}

&--fixed&--round&--safe {
bottom: constant(safe-area-inset-bottom);
bottom: env(safe-area-inset-bottom);
bottom: max(constant(safe-area-inset-bottom), 24rpx);
bottom: max(env(safe-area-inset-bottom), 24rpx);
}
}

0 comments on commit 1d637ef

Please sign in to comment.