From a095b13f7d758f794db7d60a3290bd4b03b48073 Mon Sep 17 00:00:00 2001 From: aedes Date: Wed, 22 Apr 2026 02:54:56 +0300 Subject: [PATCH] fix: inject 180px gap before each subsequent question for chat space --- scripts/mirror.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/mirror.js b/scripts/mirror.js index ea682cf..e30f42e 100644 --- a/scripts/mirror.js +++ b/scripts/mirror.js @@ -121,6 +121,12 @@ async function main() { console.log(`[mirror] networkidle reached. extra settle…`); await page.waitForTimeout(4000); + // Inject a wide gap before every question after the first — room for our chat block + await page.addStyleTag({ content: ` + .que + .que, .que ~ .que { margin-top: 180px !important; } + `}); + await page.waitForTimeout(500); + // Measure question block positions (document coords, CSS pixels) const quePositions = await page.$$eval('.que', els => els.map(el => {