From 7effb7cf6cf59a8db1eb77fa16692712de4a18ba Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 4 May 2020 17:31:32 +0800 Subject: [PATCH] style(NavBar): improve text size adjust --- src/nav-bar/index.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nav-bar/index.less b/src/nav-bar/index.less index 8fb25bc7f..582a0a82a 100644 --- a/src/nav-bar/index.less +++ b/src/nav-bar/index.less @@ -3,8 +3,10 @@ .van-nav-bar { position: relative; z-index: @nav-bar-z-index; + display: flex; + align-items: center; height: @nav-bar-height; - line-height: @nav-bar-height; + line-height: 1.5; text-align: center; background-color: @nav-bar-background-color; user-select: none;