Show an icon if a task has non-empty description

List view and Kanban view
This commit is contained in:
profi248 2020-12-30 13:09:17 +01:00 committed by David Košťál
parent 624e4e6d27
commit f50cc2b17c
4 changed files with 31 additions and 10 deletions

View File

@ -47,6 +47,9 @@
<defer-task v-if="+new Date(task.dueDate) > 0 && showDefer" v-model="task"/>
</transition>
<priority-label :priority="task.priority"/>
<span class="list-task-icon" v-if="task.description">
<icon icon="align-left"/>
</span>
</span>
<router-link
:to="{ name: 'list.list', params: { listId: task.listId } }"

View File

@ -120,6 +120,17 @@ $crazy-height-calculation: '100vh - 4.5rem - 1.5rem - 1em - 1.5em - 8px';
}
}
.icons-container {
display: flex;
.icon {
width: 25px;
height: 24px;
&:not(:first-child) {
margin-left: 4px;
}
}
}
.icon {
svg {
margin: 4px 0 4px 4px;

View File

@ -70,6 +70,10 @@
width: 27px;
}
.list-task-icon {
margin-left: 4px;
}
a {
color: $text;
transition: color ease $transition-duration;

View File

@ -153,7 +153,7 @@
/>
</div>
</div>
<div>
<div class="icons-container">
<span class="icon" v-if="task.attachments.length > 0">
<svg fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<rect fill="none" rx="0" ry="0"></rect>
@ -163,6 +163,9 @@
fill-rule="evenodd"></path>
</svg>
</span>
<span v-if="task.description" class="icon">
<icon icon="align-left"/>
</span>
</div>
</div>
</div>