fix: inject 180px gap before each subsequent question for chat space

This commit is contained in:
aedes
2026-04-22 02:54:56 +03:00
parent 8590ab0556
commit a095b13f7d

View File

@@ -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 => {