forked from vikunja/frontend
Show an icon if a task has non-empty description
List view and Kanban view
This commit is contained in:
parent
624e4e6d27
commit
f50cc2b17c
|
@ -47,6 +47,9 @@
|
||||||
<defer-task v-if="+new Date(task.dueDate) > 0 && showDefer" v-model="task"/>
|
<defer-task v-if="+new Date(task.dueDate) > 0 && showDefer" v-model="task"/>
|
||||||
</transition>
|
</transition>
|
||||||
<priority-label :priority="task.priority"/>
|
<priority-label :priority="task.priority"/>
|
||||||
|
<span class="list-task-icon" v-if="task.description">
|
||||||
|
<icon icon="align-left"/>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<router-link
|
<router-link
|
||||||
:to="{ name: 'list.list', params: { listId: task.listId } }"
|
:to="{ name: 'list.list', params: { listId: task.listId } }"
|
||||||
|
|
|
@ -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 {
|
.icon {
|
||||||
svg {
|
svg {
|
||||||
margin: 4px 0 4px 4px;
|
margin: 4px 0 4px 4px;
|
||||||
|
|
|
@ -70,6 +70,10 @@
|
||||||
width: 27px;
|
width: 27px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list-task-icon {
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: $text;
|
color: $text;
|
||||||
transition: color ease $transition-duration;
|
transition: color ease $transition-duration;
|
||||||
|
|
|
@ -153,7 +153,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="icons-container">
|
||||||
<span class="icon" v-if="task.attachments.length > 0">
|
<span class="icon" v-if="task.attachments.length > 0">
|
||||||
<svg fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
<rect fill="none" rx="0" ry="0"></rect>
|
<rect fill="none" rx="0" ry="0"></rect>
|
||||||
|
@ -163,6 +163,9 @@
|
||||||
fill-rule="evenodd"></path>
|
fill-rule="evenodd"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
|
<span v-if="task.description" class="icon">
|
||||||
|
<icon icon="align-left"/>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user