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 && ( -