Had to make various other changes due to incompatibilities. - Use the new `lit` package instead of `lit-html` or `lit-element` - Drop `haunted` since it breaks the rules by specifying `type: module` but then doesn't import with file extensions - Use Sass Dart instead of node-sass (fixes #2445) - Upgrade Karma
21 lines
853 B
JavaScript
21 lines
853 B
JavaScript
import { html } from "lit";
|
|
import { __ } from '../../i18n';
|
|
import { modal_close_button, modal_header_close_button } from "./buttons.js"
|
|
|
|
|
|
export default (o) => {
|
|
return html`
|
|
<div class="modal-dialog fit-content" role="document">
|
|
<div class="modal-content fit-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title" id="message-versions-modal-label">${__('Image: ')}<a target="_blank" rel="noopener" href="${o.src}">${o.src}</a></h4>
|
|
${modal_header_close_button}
|
|
</div>
|
|
<div class="modal-body modal-body--image fit-content">
|
|
<img class="chat-image" src="${o.src}" @load=${o.onload}>
|
|
</div>
|
|
<div class="modal-footer">${modal_close_button}</div>
|
|
</div>
|
|
</div>`;
|
|
}
|