diff --git a/packages/react/src/views/AttachmentHandler/AttachmentMetadata.js b/packages/react/src/views/AttachmentHandler/AttachmentMetadata.js
index 17e25c03db..375a836c27 100644
--- a/packages/react/src/views/AttachmentHandler/AttachmentMetadata.js
+++ b/packages/react/src/views/AttachmentHandler/AttachmentMetadata.js
@@ -1,7 +1,6 @@
import React from 'react';
import { css } from '@emotion/react';
import { ActionButton, Box, Tooltip } from '@embeddedchat/ui-elements';
-import { Markdown } from '../Markdown';
const AttachmentMetadata = ({
attachment,
@@ -48,25 +47,21 @@ const AttachmentMetadata = ({
attachment.description !== ''
? [
css`
- margin: 10px 0px;
+ margin-top: 0.5rem;
@media (max-width: 420px) {
margin: 5px 0px;
}
`,
]
: css`
- margin: -7px 0px;
+ margin-top: -3px;
@media (max-width: 420px) {
margin: -5px 0px;
}
`
}
>
- {msg ? (
-
- ) : (
- attachment.description
- )}
+ {attachment.description}
-
-
+
{isExpanded && (
-
+
)}
{attachment.attachments &&
@@ -119,6 +107,7 @@ const AudioAttachment = ({
display: flex;
gap: 0.3rem;
align-items: center;
+ padding: 0.5rem;
`,
variantStyles.textUserInfo,
]}
@@ -134,18 +123,28 @@ const AudioAttachment = ({
) : (
''
)}
-
+
+
+
diff --git a/packages/react/src/views/AttachmentHandler/VideoAttachment.js b/packages/react/src/views/AttachmentHandler/VideoAttachment.js
index 7bad3a90c6..50e54c8d98 100644
--- a/packages/react/src/views/AttachmentHandler/VideoAttachment.js
+++ b/packages/react/src/views/AttachmentHandler/VideoAttachment.js
@@ -173,14 +173,20 @@ const VideoAttachment = ({
) : (
''
)}
-
+
+
+