Remove line-breaks from message image markup
We use `white-space: pre-wrap` to render the messages, so line-breaks in the markup add unnecessary space.
This commit is contained in:
parent
994e528b45
commit
1598640c80
@ -6,16 +6,14 @@ import { html } from 'lit';
|
||||
|
||||
class ImageDirective extends AsyncDirective {
|
||||
render (src, href, onLoad, onClick) {
|
||||
return html`
|
||||
<a href="${href}" class="chat-image__link" target="_blank" rel="noopener"
|
||||
return html`<a href="${href}" class="chat-image__link" target="_blank" rel="noopener"
|
||||
><img
|
||||
class="chat-image img-thumbnail"
|
||||
src="${src}"
|
||||
@click=${onClick}
|
||||
@error=${() => this.onError(src, href, onLoad, onClick)}
|
||||
@load=${onLoad}
|
||||
/></a>
|
||||
`;
|
||||
/></a>`;
|
||||
}
|
||||
|
||||
onError (src, href, onLoad, onClick) {
|
||||
|
Loading…
Reference in New Issue
Block a user