From b58b9d420c2f74596aad996d10354942e1e66557 Mon Sep 17 00:00:00 2001 From: velz Date: Sat, 16 Aug 2025 18:23:08 +0530 Subject: [PATCH] FIX_CHATBOT_BG_IMG --- app/Views/chatbot.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/Views/chatbot.php b/app/Views/chatbot.php index 2e70216b..2adf10dd 100644 --- a/app/Views/chatbot.php +++ b/app/Views/chatbot.php @@ -203,12 +203,19 @@ function setupMessageObserver() { return; } + const whiteSVG = `data:image/svg+xml;utf8, + + `; + const svg = ``; + const uri = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`; // ✅ Change iframe body background here - doc.body.style.background = "url('https://venbait.in/nhance/app/dev/assets/chat-bg.jpg') no-repeat center center fixed"; - // doc.body.style.background = "covercover"; - doc.body.style.backgroundSize = "cover"; - doc.body.style.margin = "0"; // optional + doc.body.style.background = `url("${uri}") repeat center center fixed`; + // doc.body.style.background = "url('https://venbait.in/nhance/app/dev/assets/chat-bg.jpg')"; + // doc.body.style.background = "cover"; + doc.body.style.backgroundSize = "auto"; + doc.documentElement.style.backgroundColor = '#ffffff'; + // doc.body.style.margin = "0"; // optional // Wait for the document to be ready