mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[bugfix] NavBar: limit title max width (#867)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<span v-if="leftText" v-text="leftText" class="van-nav-bar__text" />
|
||||
</slot>
|
||||
</div>
|
||||
<div class="van-nav-bar__title">
|
||||
<div class="van-nav-bar__title van-ellipsis">
|
||||
<slot name="title">{{ title }}</slot>
|
||||
</div>
|
||||
<div class="van-nav-bar__right" @click="$emit('click-right')">
|
||||
|
@@ -30,6 +30,8 @@
|
||||
}
|
||||
|
||||
&__title {
|
||||
margin: 0 auto;
|
||||
max-width: 60%;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user