mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] NavBar: limit title max width (#867)
This commit is contained in:
parent
dc4b7cd5c3
commit
7285632c35
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user