Make full task in task list clickable

Fixes #362
This commit is contained in:
kolaente 2021-01-15 21:04:48 +01:00
parent db90a8cde4
commit 2b852de06f
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 20 additions and 15 deletions

View File

@ -6,8 +6,11 @@
class="color-bubble"
v-if="listColor !== ''">
</span>
<span :class="{ 'done': task.done}" class="tasktext">
<router-link :to="{ name: taskDetailRoute, params: { id: task.id } }">
<router-link
:to="{ name: taskDetailRoute, params: { id: task.id } }"
:class="{ 'done': task.done}"
class="tasktext">
<span>
<router-link
:to="{ name: 'list.list', params: { listId: task.listId } }"
class="task-list"
@ -24,7 +27,7 @@
>
</span>
{{ task.title }}
</router-link>
</span>
<labels :labels="task.labels"/>
<user
@ -55,7 +58,7 @@
<icon icon="align-left"/>
</span>
</span>
</span>
</router-link>
<progress
class="progress is-small"
v-if="task.percentDone > 0"

View File

@ -169,7 +169,8 @@
}
}
.is-menu-enabled .tasks .task span:not(.tag) {
.is-menu-enabled .tasks .task {
span:not(.tag), a {
.tasktext, &.tasktext {
@media screen and (max-width: $desktop) {
max-width: calc(100vw - 27px - 2rem - 1.5rem - 3rem - #{$navbar-width}); // 1.5rem is the padding of the tasks container, 3rem is the padding of .app-container
@ -182,6 +183,7 @@
}
}
}
}
.taskedit {
min-height: calc(100% - 1rem);