From f213aeb93a94fe2683c9f869cdd79f8bc7bf90f9 Mon Sep 17 00:00:00 2001 From: James Collins Date: Wed, 29 Mar 2023 20:42:36 +1000 Subject: [PATCH] added download option --- resources/js/components/SMAttachments.vue | 32 ++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/resources/js/components/SMAttachments.vue b/resources/js/components/SMAttachments.vue index a403af6..241e038 100644 --- a/resources/js/components/SMAttachments.vue +++ b/resources/js/components/SMAttachments.vue @@ -19,6 +19,24 @@ class="sm-attachment-file-name" >{{ file.title || file.name }} + + + + +
({{ bytesReadable(file.size) }})
@@ -62,9 +80,21 @@ const props = defineProps({ justify-content: center; } + .sm-attachment-download { + margin-left: 0.75rem; + width: 1rem; + height: 1rem; + color: $secondary-color-dark; + transition: color 0.2s ease-in-out; + + &:hover { + color: $primary-color-dark; + } + } + .sm-attachment-file-size { font-size: 75%; - padding-left: 0.75rem; + margin-left: 0.75rem; color: $secondary-color-dark; } }