Fix iframe unwanted horizontal scrollbar.

This commit is contained in:
John Livingston 2021-11-23 18:10:01 +01:00
parent 8e0613622f
commit 74236028ac
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -97,6 +97,8 @@ window.initConverse = async function initConverse ({
const body = document.querySelector('body')
if (body) {
body.classList.add('livechat-iframe')
// prevent horizontal scrollbar when in iframe. (don't know why, but does not work if done by CSS)
body.style.overflowX = 'hidden'
}
}