优化项目简介样式

This commit is contained in:
kuaifan 2022-01-24 00:33:31 +08:00
parent a825657516
commit 2a646becfd
2 changed files with 85 additions and 72 deletions

View File

@ -69,7 +69,8 @@
</li>
</ul>
</div>
<div v-if="projectData.desc" class="project-subtitle">{{projectData.desc}}</div>
<div class="project-subbox">
<div class="project-subtitle">{{projectData.desc}}</div>
<div class="project-switch">
<div v-if="completedCount > 0" class="project-checkbox">
<Checkbox :value="projectParameter('completedTask')" @on-change="toggleCompleted">{{$L('显示已完成')}}</Checkbox>
@ -80,6 +81,7 @@
</div>
</div>
</div>
</div>
<div v-if="projectParameter('card')" class="project-column">
<Draggable
:list="columnList"

View File

@ -112,23 +112,26 @@
}
}
}
.project-subtitle {
width: 100%;
color: #999999;
line-height: 24px;
margin-top: -6px;
margin-bottom: -18px;
padding-right: 260px;
}
.project-switch {
.project-subbox {
width: 100%;
display: flex;
justify-content: flex-end;
justify-content: space-between;
.project-subtitle {
flex: 1;
color: #999999;
line-height: 24px;
}
.project-switch {
margin-left: 80px;
flex-shrink: 0;
display: flex;
align-items: flex-end;
.project-checkbox {
display: flex;
align-items: center;
margin-right: 14px;
opacity: 0.9;
height: 30px;
.ivu-checkbox-focus {
box-shadow: none;
}
@ -138,6 +141,7 @@
align-items: center;
background-color: #ffffff;
border-radius: 6px;
height: 30px;
position: relative;
transition: box-shadow 0.2s;
&:hover {
@ -188,6 +192,7 @@
}
}
}
}
.project-column {
display: flex;
height: 100%;
@ -934,10 +939,16 @@
justify-content: flex-end;
}
}
.project-subbox {
display: block;
.project-subtitle {
padding-right: 12px;
margin-bottom: 6px;
}
.project-switch {
margin-left: 0;
justify-content: flex-end;
}
}
}
.project-column {
> ul {