ConverseJS: show the toolbar when in fullscreen.

This commit is contained in:
John Livingston 2021-05-05 17:32:50 +02:00
parent e5d5da4d07
commit 5a82f9aa93
2 changed files with 9 additions and 1 deletions

View File

@ -90,6 +90,14 @@ window.initConverse = async function initConverse ({
advancedControls
}: InitConverseParams) {
const isInIframe = inIframe()
if (isInIframe) {
const body = document.querySelector('body')
if (body) {
body.classList.add('livechat-iframe')
}
}
const params: any = {
assets_path: assetsPath,

View File

@ -9,7 +9,7 @@
<script type="text/javaScript" src="{{BASE_STATIC_URL}}/conversejs/converse.min.js"></script>
<script type="text/javascript" src="{{BASE_STATIC_URL}}/static/builtin.js"></script>
<style type="text/css">
#conversejs .chat-head {
body.livechat-iframe #conversejs .chat-head {
display: none;
}
</style>