diff --git a/modules/helpdesk/web/css/helpdesk.css b/modules/helpdesk/web/css/helpdesk.css index 4aaadf7..b8bfad6 100644 --- a/modules/helpdesk/web/css/helpdesk.css +++ b/modules/helpdesk/web/css/helpdesk.css @@ -1318,6 +1318,14 @@ display: block; max-width: 16rem; margin-left: 1.35rem; + position: relative; + } + + .helpdesk-chat-file-skeleton { + display: block; + width: 12rem; + height: 8rem; + border-radius: var(--app-radius, 0.375rem); } .helpdesk-chat-file-preview img { @@ -1326,6 +1334,7 @@ height: auto; border-radius: var(--app-radius, 0.375rem); border: 1px solid var(--app-muted-border-color); + cursor: zoom-in; } .helpdesk-chat-file-link { diff --git a/modules/helpdesk/web/js/helpdesk-communication.js b/modules/helpdesk/web/js/helpdesk-communication.js index e044a98..c080c92 100644 --- a/modules/helpdesk/web/js/helpdesk-communication.js +++ b/modules/helpdesk/web/js/helpdesk-communication.js @@ -126,7 +126,10 @@ export function renderCommunicationFeed(entries, options = {}) { html += `${esc(actor)} ${esc(t('attached a file'))}`; if (timeLabel) html += ` ${esc(t('on'))} ${esc(timeLabel)}`; html += ``; - html += `${esc(fileName)}`; + html += ``; + html += ``; + html += `${esc(fileName)}`; + html += ``; html += ` ${esc(fileName)}`; html += ''; html += '';