From 443a9c14b9c8158daf684063981caafc06815a55 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 18 Jan 2022 21:42:43 +0100 Subject: [PATCH] fix: attachment meta data not aligned properly --- src/components/tasks/partials/attachments.vue | 46 ++++++++++++------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/src/components/tasks/partials/attachments.vue b/src/components/tasks/partials/attachments.vue index a01a6201..25c3005b 100644 --- a/src/components/tasks/partials/attachments.vue +++ b/src/components/tasks/partials/attachments.vue @@ -34,7 +34,7 @@ >
{{ a.file.name }}
-

+

{{ formatDateSince(a.created) }} @@ -289,21 +289,6 @@ export default { content: 'ยท'; padding: 0 .25rem; } - - @media screen and (max-width: $mobile) { - &.collapses { - flex-direction: column; - - > span:not(:last-child):after, - > a:not(:last-child):after { - display: none; - } - - .user .username { - display: none; - } - } - } } } } @@ -357,6 +342,35 @@ export default { } } +.attachment-info-meta { + display: flex; + align-items: center; + + :deep(.user) { + display: flex !important; + align-items: center; + margin: 0 .5rem; + } + + @media screen and (max-width: $mobile) { + flex-direction: column; + align-items: flex-start; + + :deep(.user) { + margin: .5rem 0; + } + + > span:not(:last-child):after, + > a:not(:last-child):after { + display: none; + } + + .user .username { + display: none; + } + } +} + @keyframes bounce { from, 20%,