Improve text overflow for MenuItem and AnchorLink, close #3712

pull/3799/head
afc163 8 years ago
parent cbec9c5db1
commit 850e713e7f

@ -82,6 +82,7 @@ export default class AnchorLink extends React.Component<AnchorLinkProps, any> {
className={`${prefixCls}-link-title`}
onClick={this.scrollTo}
href={href}
title={typeof title === 'string' ? title : ''}
>
{title}
</a>

@ -54,6 +54,9 @@
position: relative;
transition: all .3s;
color: @text-color;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&-active > &-title {

@ -278,6 +278,8 @@
font-size: @font-size-base;
line-height: 42px;
height: 42px;
overflow: hidden;
text-overflow: ellipsis;
}
}

Loading…
Cancel
Save