Commit ffe999f8 authored by chenqikuai's avatar chenqikuai

fix: 修复文件夹名称长度过长引起的页面布局混乱的问题

parent 736e9860
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:src="iconSrc || require('@/assets/defaulttemplate.png')" :src="iconSrc || require('@/assets/defaulttemplate.png')"
round round
/> />
<div> <div class="item-info">
<div class="title-text">{{ title }}</div> <div class="title-text">{{ title }}</div>
<div class="update-time">更新于 {{ date | formatTime }}</div> <div class="update-time">更新于 {{ date | formatTime }}</div>
</div> </div>
...@@ -110,21 +110,28 @@ export default class MoreAction extends Vue { ...@@ -110,21 +110,28 @@ export default class MoreAction extends Vue {
height: 28px; height: 28px;
margin-right: 12px; margin-right: 12px;
} }
.title-text { .item-info {
font-size: 14px; flex-grow: 1;
font-family: PingFangSC-Regular, PingFang SC; overflow: hidden;
font-weight: 400; .title-text {
color: #353535; white-space: nowrap;
} text-overflow: ellipsis;
.update-time { overflow: hidden;
font-size: 12px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #b6b5ba; color: #353535;
}
.update-time {
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #b6b5ba;
}
} }
} }
.btn-cancel { .btn-cancel {
border-top: 1px solid #EAEAEB; border-top: 1px solid #eaeaeb;
text-align: center; text-align: center;
line-height: 50px; line-height: 50px;
height: 50px; height: 50px;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
v-if="isFolderList" v-if="isFolderList"
:to="{ name: 'Add', query: { folderId: id } }" :to="{ name: 'Add', query: { folderId: id } }"
tag="p" tag="p"
style="color: #3f79fe" style="color: #3f79fe;white-space:nowrap;"
> <common-svg name="xuanzemoban-tianjia1" width="11px" style="margin-right:5px"></common-svg>添加模板</router-link > <common-svg name="xuanzemoban-tianjia1" width="11px" style="margin-right:5px"></common-svg>添加模板</router-link
> >
</div> </div>
...@@ -252,6 +252,10 @@ export default class List extends Mixins(TemplateMixin) { ...@@ -252,6 +252,10 @@ export default class List extends Mixins(TemplateMixin) {
padding: 11px 14px; padding: 11px 14px;
background: #f9fbff; background: #f9fbff;
.title{ .title{
flex-grow: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<common-svg name="jinru"></common-svg> <common-svg name="jinru"></common-svg>
</label> </label>
<div class="btn-group"> <div class="btn-group">
<div @click="handleClickFolder"> <div @click="handleClickFolder" class="van-ellipsis">
<span>所在文件夹</span>: <span>所在文件夹</span>:
<span class="classify">{{ folder && folder.name }}</span> <span class="classify">{{ folder && folder.name }}</span>
</div> </div>
...@@ -280,6 +280,7 @@ $bottom-block: calc(40px + 2 * 18px); ...@@ -280,6 +280,7 @@ $bottom-block: calc(40px + 2 * 18px);
color: #3f79fe; color: #3f79fe;
} }
.next { .next {
white-space: nowrap;
padding: 10px 37px; padding: 10px 37px;
font-size: 16px; font-size: 16px;
} }
......
...@@ -68,6 +68,7 @@ export default class TemplateItem extends Vue { ...@@ -68,6 +68,7 @@ export default class TemplateItem extends Vue {
} }
.title{ .title{
font-weight: 500; font-weight: 500;
width: 100%;
} }
.desc{ .desc{
font-size: 14px; font-size: 14px;
......
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