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
mutoe committed Jul 6, 2018
1 parent 9d9adf7 commit 2bfa575
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions src/page/question/components/TopicCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
:to="`/question-topics/${topic.id}`"
tag="a"
class="title">
<span class="topic">{{ topic.name }}</span>
<span class="label">
<div class="topic m-text-cut">{{ topic.name }}</div>
<div class="label">
<span>{{ topic.follows_count }}</span>&nbsp;关注
·
<span>{{ topic.questions_count }}</span>&nbsp;问题
</span>
</div>
</router-link>
<button
v-if="topic.has_follow || type === 'follow'"
Expand Down Expand Up @@ -56,6 +56,7 @@ export default {
border-bottom: solid 1px #d7d8d8;
.topic-image {
flex: none;
width: 120px;
height: 120px;
margin-right: 28px;
Expand All @@ -64,40 +65,31 @@ export default {
}
.title {
flex-grow: 1;
display: inline-flex;
align-items: flex-start;
flex-direction: column;
height: 120px;
justify-content: center;
flex: auto;
min-width: 0;
.topic {
margin-top: 17px;
font-size: 32px;
font-weight: normal;
font-stretch: normal;
line-height: 0px;
height: 30px;
letter-spacing: 0px;
color: #333;
}
.label {
margin-top: 19px;
height: 26px;
font-size: 28px;
font-weight: normal;
font-stretch: normal;
line-height: 0px;
letter-spacing: 0px;
color: #666;
margin-top: 16px;
> span {
color: #59b6d7;
}
}
}
.follow {
// width: 126px;
flex: none;
height: 50px;
background-color: #fff;
border-radius: 8px;
Expand Down

0 comments on commit 2bfa575

Please sign in to comment.