Skip to content

Commit 5d709f1

Browse files
committed
fix: update embedZoom handling to adjust font size instead of body zoom
1 parent 4f47f08 commit 5d709f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adminforth/spa/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<script>
2121
const embedZoom = Number(new URLSearchParams(window.location.search).get('embedZoom'));
2222
if (Number.isFinite(embedZoom) && embedZoom > 0) {
23-
document.body.style.zoom = String(embedZoom);
23+
document.documentElement.style.fontSize = `${embedZoom * 100}%`;
2424
}
2525
</script>
2626
<div id="app" class="grow bg-lightHtml dark:bg-darkHtml w-full"></div>

0 commit comments

Comments
 (0)