diff --git a/app/javascript/dashboard/assets/scss/widgets/_conversation-view.scss b/app/javascript/dashboard/assets/scss/widgets/_conversation-view.scss index f95ee8a65..795c8c1c1 100644 --- a/app/javascript/dashboard/assets/scss/widgets/_conversation-view.scss +++ b/app/javascript/dashboard/assets/scss/widgets/_conversation-view.scss @@ -29,13 +29,13 @@ } .modal-image { - max-height: 80vh; - max-width: 80vw; + max-height: 76vh; + max-width: 76vw; } .modal-video { - max-height: 80vh; - max-width: 80vw; + max-height: 76vh; + max-width: 76vw; } &::before { diff --git a/app/javascript/dashboard/components/Modal.vue b/app/javascript/dashboard/components/Modal.vue index 8b762c60c..e7740cc35 100644 --- a/app/javascript/dashboard/components/Modal.vue +++ b/app/javascript/dashboard/components/Modal.vue @@ -8,6 +8,7 @@ >
-
+
({ + ...attachment, + sender: this.data.sender || {}, + created_at: this.data.created_at || '', + })); + }, shouldRenderMessage() { return ( this.hasAttachments || diff --git a/app/javascript/dashboard/components/widgets/conversation/components/GalleryView.vue b/app/javascript/dashboard/components/widgets/conversation/components/GalleryView.vue index 0f04c1d07..509c0c7e4 100644 --- a/app/javascript/dashboard/components/widgets/conversation/components/GalleryView.vue +++ b/app/javascript/dashboard/components/widgets/conversation/components/GalleryView.vue @@ -1,79 +1,131 @@