From 98b36572aaeed6606517e214fe89b89e997fb486 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 3 Dec 2025 01:05:05 +0530 Subject: [PATCH] chore: fix alignment and styling --- static/share.js | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/static/share.js b/static/share.js index 359aa7d..c066b26 100644 --- a/static/share.js +++ b/static/share.js @@ -29,42 +29,42 @@ async function screenshotDOM(el, opts = {}) { const phonetic = el.querySelector(".pronun").textContent.trim(); const [types, ...defs] = [...el.querySelectorAll("ol.defs li")].map(node => node.textContent.trim()); - const vOffset = 48; + const vOffset = 25; const svg = ` - + - + @@ -72,15 +72,15 @@ async function screenshotDOM(el, opts = {}) { ${word} - ${phonetic} + ${phonetic} - ${types} + ${types} ${defs.map((def, idx) => ` - ${idx + 1}. - ${def} + ${idx + 1}. + ${def} `)}