From 615c84c15e2bc236e4e34ff907be9fb36fee1f7a Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Tue, 24 Feb 2026 15:22:58 -0500 Subject: [PATCH] aggressive inline dialog reset for host page CSS, 42+ voices, per-subdomain vault --- public/src/uncloseai-embed-modal.js | 5 +++-- public/uncloseai-js.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/src/uncloseai-embed-modal.js b/public/src/uncloseai-embed-modal.js index baad767..dabfccf 100644 --- a/public/src/uncloseai-embed-modal.js +++ b/public/src/uncloseai-embed-modal.js @@ -274,8 +274,9 @@ async function openUncloseaiEmbeddedModalNew() { const modal = document.createElement("dialog"); modal.id = "uncloseai-embedded-modal"; modal.setAttribute("data-theme", theme); - // Force zero padding inline so host page dialog styles can't push the header inward - modal.style.padding = "0"; + // Force inline resets so host page dialog/article styles can't push content inward + modal.style.cssText = + "padding:0;margin:0;border:none;max-width:none;max-height:none;overflow:hidden;"; // CSS handles all styling now - no inline styles needed // But we still need isMobile for some responsive text sizing diff --git a/public/uncloseai-js.html b/public/uncloseai-js.html index d89d410..94bc7ab 100644 --- a/public/uncloseai-js.html +++ b/public/uncloseai-js.html @@ -159,7 +159,7 @@