fix(项目设置): 项目描述过长的问题

--bug=1012774 --user=李玉号 【项目设置】项目基本信息显示不出来了
https://www.tapd.cn/55049933/s/1148497
This commit is contained in:
shiziyuan9527 2022-04-26 18:17:53 +08:00 committed by shiziyuan9527
parent 54fda19a56
commit 523911908c
1 changed files with 13 additions and 1 deletions

View File

@ -10,7 +10,10 @@
<i class="el-icon-edit project-edit" @click="edit" v-permission="['PROJECT_MANAGER:READ+EDIT']"></i>
<el-row class="project-item">
<span class="project-item-title">{{ $t('project.desc') }}</span>
<span class="project-item-desc">{{ project.description }}</span>
<el-tooltip effect="light" placement="top" :enterable="false">
<div slot="content">{{ project.description }}</div>
<span class="project-item-desc project-desc">{{ project.description }}</span>
</el-tooltip>
</el-row>
<el-row class="project-item">
<span class="project-item-title">{{ $t('project.manage_people') }}</span>
@ -284,4 +287,13 @@ export default {
.desc {
color: #989292;
}
.project-desc {
display: inline-block;
width: 180px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 14px;
}
</style>