From 464a17008e9d3b870a3c937e3bcf046f81daf374 Mon Sep 17 00:00:00 2001 From: elijah <146715005+schizoposter@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:39:31 +0200 Subject: [PATCH] v1.3 --- src/content.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/content.js b/src/content.js index 39b7ba7..29e81fa 100644 --- a/src/content.js +++ b/src/content.js @@ -77,10 +77,10 @@ const createOverlay = (text) => { loadSettings().then((settings) => { overlay.style.cssText = ` position: absolute; - padding: 10px; + padding: 5px; z-index: 2147483647; color: rgba(0, 0, 0, ${settings.textOpacity / 100}); - font-size: 14px; + font-size: 16px; max-width: 600px; white-space: pre-wrap; pointer-events: none; @@ -104,6 +104,7 @@ const positionOverlay = () => { const rect = range.getBoundingClientRect(); // Get scroll positions + // this is deprecated but currently the only way thank you mr mozilla const scrollX = window.pageXOffset || document.documentElement.scrollLeft; const scrollY = window.pageYOffset || document.documentElement.scrollTop; @@ -314,12 +315,8 @@ const modifyNearestInput = async () => { } try { - const oldPlaceholder = nearestInput.placeholder; - nearestInput.placeholder = "Processing..."; const llmResponse = await queryLLM(selectedText); nearestInput.value = llmResponse; - // replace the placeholder again so we do not interefere with the users ability to solve - nearestInput.placeholder = oldPlaceholder; } catch (error) { console.error("Error:", error); nearestInput.value = "Error processing request";