From 4ff574055928b94283487c64f98bed9ca2727ab8 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Mon, 10 Nov 2025 16:43:41 -0500 Subject: [PATCH] Revert inline styles approach - wrong solution --- public/src/uncloseai-embed-modal.js | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/public/src/uncloseai-embed-modal.js b/public/src/uncloseai-embed-modal.js index 97f46e9..909f2e9 100644 --- a/public/src/uncloseai-embed-modal.js +++ b/public/src/uncloseai-embed-modal.js @@ -121,20 +121,6 @@ function addCodeBlockCopyButtons(element) { copyBtn.className = "uncloseai-code-copy-btn"; copyBtn.textContent = "📋"; copyBtn.title = "Copy code"; - // Defensive inline styles to ensure visibility on all sites - copyBtn.style.cssText = ` - display: inline-block; - visibility: visible; - opacity: 0.9; - background: rgba(0, 0, 0, 0.6); - color: white; - border: 1px solid rgba(255, 255, 255, 0.3); - padding: 4px 8px; - border-radius: 4px; - font-size: 14px; - cursor: pointer; - white-space: nowrap; - `; copyBtn.onclick = async () => { try { @@ -155,20 +141,6 @@ function addCodeBlockCopyButtons(element) { runBtn.className = "uncloseai-code-copy-btn"; // Reuse same styling runBtn.textContent = "▶"; runBtn.title = "Run code in sandbox"; - // Defensive inline styles to ensure visibility on all sites - runBtn.style.cssText = ` - display: inline-block; - visibility: visible; - opacity: 0.9; - background: rgba(0, 0, 0, 0.6); - color: white; - border: 1px solid rgba(255, 255, 255, 0.3); - padding: 4px 8px; - border-radius: 4px; - font-size: 14px; - cursor: pointer; - white-space: nowrap; - `; // Detect language from code block class let language = 'python'; // Default