style(Sidebar): fix long number wrap (#7456)

This commit is contained in:
neverland 2020-10-31 07:52:27 +08:00 committed by GitHub
parent ff7742670b
commit f4402f9a91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,6 @@
color: @sidebar-text-color; color: @sidebar-text-color;
font-size: @sidebar-font-size; font-size: @sidebar-font-size;
line-height: @sidebar-line-height; line-height: @sidebar-line-height;
word-wrap: break-word;
background-color: @sidebar-background-color; background-color: @sidebar-background-color;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
@ -21,6 +20,8 @@
&__text { &__text {
position: relative; position: relative;
display: inline-block; display: inline-block;
// https://github.com/youzan/vant/issues/7455
word-break: break-all;
} }
&:not(:last-child)::after { &:not(:last-child)::after {