Commit e73d1430 authored by JC Brand's avatar JC Brand

Fix image to modal (i.e. avoid scrollbars)

parent 4295264a
......@@ -28,6 +28,13 @@
}
}
}
.modal-body--image {
height: 72vh;
.chat-image {
max-height: 99%;
max-width: 100%;
}
}
.modal-footer {
justify-content: flex-start;
}
......
......@@ -10,7 +10,7 @@ export default (o) => html`
<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 fit-content">
<div class="modal-body modal-body--image fit-content">
<img class="chat-image" src="${o.src}"/>
</div>
<div class="modal-footer">${modal_close_button}</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment