diff --git a/api/src/extensions/channels/web/base-web-channel.ts b/api/src/extensions/channels/web/base-web-channel.ts index 84719b9a..2568ca53 100644 --- a/api/src/extensions/channels/web/base-web-channel.ts +++ b/api/src/extensions/channels/web/base-web-channel.ts @@ -787,6 +787,10 @@ export default abstract class BaseWebChannelHandler< const attachment = await this.handleUpload(req, res); if (attachment) { event._adapter.attachment = attachment; + event._adapter.raw.data = { + type: Attachment.getTypeByMime(attachment.type), + url: await this.getPublicUrl(attachment), + }; } } catch (err) { this.logger.warn( diff --git a/widget/src/components/Suggestions.scss b/widget/src/components/Suggestions.scss index 9a31b691..6d562540 100644 --- a/widget/src/components/Suggestions.scss +++ b/widget/src/components/Suggestions.scss @@ -4,7 +4,7 @@ } .sc-suggestions-element { - margin: 0 0 0 0.25rem; + margin: 0 0 0.25rem 0.25rem; padding: 0.25rem 0.5rem; border: 1px solid; border-radius: 2rem;