.tab-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; padding-top:5px; padding-bottom: calc(5px + constant(safe-area-inset-bottom)); padding-bottom: calc(5px + env(safe-area-inset-bottom)); box-shadow: 0px -3px 6px rgba(203, 203, 203, 0.16); z-index:50; } .tab-bar-item { flex: 1; text-align: center; display: flex; justify-content: center; align-items: center; flex-direction: column; } .tab-bar-item .icon { width: 22px; height: 22px; } .tab-bar-item .text { font-size: 10px; margin-top:3px; }