gentle-policeman-89141
05/13/2025, 2:18 PM@media (min-width: 768px) {
.bpWebchat {
max-height: 700px;
height: min(700px, calc(100% - 120px));
}
}
I need the chat interface to occupy the full viewport height, so I added the following override in Webchat → Custom CSS:
@media (min-width: 768px) {
.bpOpen.bpWebchat {
max-height: 100vh !important;
height: 100vh !important;
}
}
I also tried adding this to the html source
This doesnt work because I believe that I cant target selectors inside the iframe, i thought adding custom styles in the webchat tab in dashboard would work.
I have hard-refreshed to clear page and CSS caches
Despite this, the internal .bpWebchat rule still enforces the 700 px cap. Is there a way to override this?
Thank you.gentle-policeman-89141
05/13/2025, 2:19 PMprehistoric-airplane-85682
05/13/2025, 7:40 PMgentle-policeman-89141
05/14/2025, 7:31 AMgentle-policeman-89141
05/14/2025, 7:33 AMlimited-lunch-44607
05/14/2025, 7:23 PMprehistoric-airplane-85682
05/14/2025, 8:11 PMprehistoric-airplane-85682
05/14/2025, 8:12 PMlimited-lunch-44607
05/14/2025, 8:13 PMlimited-lunch-44607
05/14/2025, 8:13 PMlimited-lunch-44607
05/14/2025, 8:13 PMlimited-lunch-44607
05/14/2025, 8:14 PMlimited-lunch-44607
05/14/2025, 8:15 PMlimited-lunch-44607
05/14/2025, 8:16 PMlimited-lunch-44607
05/14/2025, 8:36 PM<div style="width: 100%; height: 600px;">
<iframe id="bpFull" style="width: 100%; height: 100%; border: none;" srcdoc="
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<script src='https://cdn.botpress.cloud/webchat/v2.2/inject.js'></script>
<script src='https://mediafiles.botpress.cloud/26a83f89-ace1-4045-92ba-95b836f75669/webchat/v2/config.js'></script>
<script>
window.botpress.on('webchat:ready', () => { botpress.open(); });
</script>
<style>
html, body {
margin: 0;
padding: 0;
overflow: hidden;
height: 100%;
}
.bpWebchat {
width: 100% !important;
height: 100% !important;
right: 0 !important;
bottom: 0 !important;
max-height: 100% !important;
overflow: auto !important;
-webkit-overflow-scrolling: touch;
}
</style>
</head>
<body></body>
</html>
"></iframe>
</div>limited-lunch-44607
05/14/2025, 8:37 PMgentle-policeman-89141
05/15/2025, 10:22 AMgentle-policeman-89141
05/15/2025, 10:24 AM<div id="webchat-container" style="position: relative; width: 100vw; height: 100vh;">
<script src="https://cdn.botpress.cloud/webchat/v2.4/inject.js"></script>
<script> then this goes in the head: <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />gentle-policeman-89141
05/15/2025, 10:25 AMprehistoric-airplane-85682
05/15/2025, 6:11 PMprehistoric-airplane-85682
05/15/2025, 6:12 PMgentle-policeman-89141
05/16/2025, 2:17 PM