From 2ab6894542dd3d03a2dbca85ef2f85f2c88063c9 Mon Sep 17 00:00:00 2001 From: Elscrux Date: Thu, 9 May 2024 11:51:54 +0200 Subject: [PATCH] Replace table with grid --- .../components/tasks/partials/attachments.vue | 172 +++++++++--------- 1 file changed, 88 insertions(+), 84 deletions(-) diff --git a/frontend/src/components/tasks/partials/attachments.vue b/frontend/src/components/tasks/partials/attachments.vue index 36137d0be..dc21ac9c8 100644 --- a/frontend/src/components/tasks/partials/attachments.vue +++ b/frontend/src/components/tasks/partials/attachments.vue @@ -27,91 +27,89 @@ v-if="attachments.length > 0" class="files" > - - - - - -
- - -
- {{ a.file.name }} - +
+ +
+
+
+ {{ a.file.name }} + + {{ $t('task.attachment.usedAsCover') }} + +
+
+

+ - {{ $t('task.attachment.usedAsCover') }} + + {{ formatDateSince(a.created) }} + + + + + {{ getHumanSize(a.file.size) }} -

-
-

- - - {{ formatDateSince(a.created) }} - - - - - {{ getHumanSize(a.file.size) }} - - - {{ a.file.mime }} - -

-

- - {{ $t('misc.download') }} - - - {{ $t('task.attachment.copyUrl') }} - - - {{ $t('misc.delete') }} - - - {{ - task.coverImageAttachmentId === a.id - ? $t('task.attachment.unsetAsCover') - : $t('task.attachment.setAsCover') - }} - -

-
-
+ + {{ a.file.mime }} + +

+

+ + {{ $t('misc.download') }} + + + {{ $t('task.attachment.copyUrl') }} + + + {{ $t('misc.delete') }} + + + {{ + task.coverImageAttachmentId === a.id + ? $t('task.attachment.unsetAsCover') + : $t('task.attachment.setAsCover') + }} + +

+ + +