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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 20 additions and 15 deletions

View file

@ -6,8 +6,11 @@
class="color-bubble" class="color-bubble"
v-if="listColor !== ''"> v-if="listColor !== ''">
</span> </span>
<span :class="{ 'done': task.done}" class="tasktext"> <router-link
<router-link :to="{ name: taskDetailRoute, params: { id: task.id } }"> :to="{ name: taskDetailRoute, params: { id: task.id } }"
:class="{ 'done': task.done}"
class="tasktext">
<span>
<router-link <router-link
:to="{ name: 'list.list', params: { listId: task.listId } }" :to="{ name: 'list.list', params: { listId: task.listId } }"
class="task-list" class="task-list"
@ -24,7 +27,7 @@
> >
</span> </span>
{{ task.title }} {{ task.title }}
</router-link> </span>
<labels :labels="task.labels"/> <labels :labels="task.labels"/>
<user <user
@ -55,7 +58,7 @@
<icon icon="align-left"/> <icon icon="align-left"/>
</span> </span>
</span> </span>
</span> </router-link>
<progress <progress
class="progress is-small" class="progress is-small"
v-if="task.percentDone > 0" 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 { .tasktext, &.tasktext {
@media screen and (max-width: $desktop) { @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 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 { .taskedit {
min-height: calc(100% - 1rem); min-height: calc(100% - 1rem);