forked from akai/readest
layout: fix hardcoded image layout in fixed layout documents (#1660)
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user