fixes in styles

This commit is contained in:
Mateusz Gruszczyński committed 2026-08-03 12:32:55 +02:00
1 parent 55e58c4bff
commit 8b8b3b82b8
9 files changed
+536 -89

No files matched your search

+1 -1
View File
@@ -261,7 +261,7 @@ export function alignPreviewLineNumbers(root) {
const targetLeft = parseFloat(styles.paddingLeft || "0") - 50;
const rootLeft = root.getBoundingClientRect().left;
root.querySelectorAll(".preview-source-line").forEach(line => {
const lineLeft = line.getBoundingClientRect().left - rootLeft;
const lineLeft = line.getBoundingClientRect().left - rootLeft + root.scrollLeft;
line.style.setProperty("--preview-line-left", `${targetLeft - lineLeft}px`);
});
}