[bugfix] NavBar: limit title max width (#867)

This commit is contained in:
neverland 2018-04-13 12:57:16 +08:00 committed by GitHub
parent dc4b7cd5c3
commit 7285632c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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')">

View File

@ -30,6 +30,8 @@
}
&__title {
margin: 0 auto;
max-width: 60%;
font-size: 16px;
}