Commit 6a1b5b23 by FE

rank modify

parent 82f390d0
...@@ -81,7 +81,7 @@ class TreasureRank extends Component { ...@@ -81,7 +81,7 @@ class TreasureRank extends Component {
} }
</dd> </dd>
<dd className="rank-column"> <dd className="rank-column">
<span>{item.user_name}</span> <span className="rank-column__name">{item.user_name}</span>
</dd> </dd>
<dd className="rank-column"> <dd className="rank-column">
<span>{item.num}</span> <span>{item.num}</span>
...@@ -97,7 +97,7 @@ class TreasureRank extends Component { ...@@ -97,7 +97,7 @@ class TreasureRank extends Component {
)) ))
} }
<div className="rank-more" onClick={this.switchMoreRank}> <div className="rank-more" onClick={this.switchMoreRank}>
<span className="rank-more__txt">展开</span> <span className="rank-more__txt">{isMore? '展开' : '收起'}</span>
<i className="rank-more__icon" data-more={isMore}></i> <i className="rank-more__icon" data-more={isMore}></i>
</div> </div>
</div> </div>
......
...@@ -120,12 +120,21 @@ ...@@ -120,12 +120,21 @@
} }
} }
.rank-column__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rank-column__txt { .rank-column__txt {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 0 5px; padding: 0 5px;
text-align: left; text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
a.rank-column__txt { a.rank-column__txt {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment