diff --git a/src/components/tasks/partials/attachments.vue b/src/components/tasks/partials/attachments.vue index 5b70d84b..1880e851 100644 --- a/src/components/tasks/partials/attachments.vue +++ b/src/components/tasks/partials/attachments.vue @@ -9,7 +9,7 @@ -
{{ a.file.name }}
+
+ {{ a.file.name }} + + {{ $t('task.attachment.usedAsCover') }} + +

@@ -78,6 +86,17 @@ > {{ $t('misc.delete') }} + + {{ + task.coverImageAttachmentId === a.id + ? $t('task.attachment.unsetAsCover') + : $t('task.attachment.setAsCover') + }} +

@@ -85,7 +104,7 @@ {{ $t('task.attachment.delete') }} - + @@ -316,7 +348,7 @@ function copyUrl(attachment: IAttachment) { height: auto; text-shadow: var(--shadow-md); animation: bounce 2s infinite; - + @media (prefers-reduced-motion: reduce) { animation: none; } @@ -338,7 +370,7 @@ function copyUrl(attachment: IAttachment) { .attachment-info-meta { display: flex; align-items: center; - + :deep(.user) { display: flex !important; align-items: center; @@ -348,7 +380,7 @@ function copyUrl(attachment: IAttachment) { @media screen and (max-width: $mobile) { flex-direction: column; align-items: flex-start; - + :deep(.user) { margin: .5rem 0; } @@ -394,5 +426,13 @@ function copyUrl(attachment: IAttachment) { } } +.is-task-cover { + background: var(--primary); + color: var(--white); + padding: .25rem .35rem; + border-radius: 4px; + font-size: .75rem; +} + @include modal-transition(); \ No newline at end of file diff --git a/src/components/tasks/partials/kanban-card.vue b/src/components/tasks/partials/kanban-card.vue index 1ee64f36..4bf4fa47 100644 --- a/src/components/tasks/partials/kanban-card.vue +++ b/src/components/tasks/partials/kanban-card.vue @@ -11,62 +11,70 @@ @click.ctrl="() => toggleTaskDone(task)" @click.meta="() => toggleTaskDone(task)" > - - - - - - - - + +
+ + + + - - -

{{ task.title }}

- - {{ task.percentDone * 100 }}% - -