layout: fix hardcoded image layout in fixed layout documents (#1660)

This commit is contained in:
Huang Xin
2025-07-22 16:40:21 +08:00
committed by GitHub
parent 93071e727f
commit f31c9b2a98
5 changed files with 29 additions and 2 deletions
+18
View File
@@ -538,3 +538,21 @@ export const applyImageStyle = (document: Document) => {
}
});
};
export const applyFixedlayoutStyles = (document: Document) => {
const style = document.createElement('style');
style.textContent = `
html, body {
overflow: hidden;
height: 100%;
width: 100%;
}
body {
position: relative;
}
img.singlePage {
position: relative;
}
`;
document.head.appendChild(style);
};