Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix: 修正列表页面显示文字
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed Apr 26, 2018
1 parent 0a2f7b8 commit b1edaee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FeedCard/FeedCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<h2 v-if="title">{{ title }}</h2>
<div class="m-card-con" v-if="body.length > 0">
<p
class="m-text-box m-text-cut-4"
class="m-text-box m-text-cut-3"
:class="{needPay}"
v-html="replaceURI(body)"></p>
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/style/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,27 @@ body,
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
/* autoprefixer: off*/
-webkit-box-orient: vertical;
/* autoprefixer: on*/
}
.m-text-cut-3 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
/* autoprefixer: off*/
-webkit-box-orient: vertical;
/* autoprefixer: on*/
}
.m-text-cut-4 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 4;
/* autoprefixer: off*/
-webkit-box-orient: vertical;
/* autoprefixer: on*/
}
.m-text-box {
word-wrap: break-word;
Expand Down

0 comments on commit b1edaee

Please sign in to comment.