CBZ: remove body margin

Fixes https://github.com/johnfactotum/foliate/issues/1421
This commit is contained in:
John Factotum
2024-11-04 05:37:40 +08:00
parent 24187b79f9
commit b5ae4c22c1
+1 -1
View File
@@ -5,7 +5,7 @@ export const makeComicBook = ({ entries, loadBlob, getSize }, file) => {
if (cache.has(name)) return cache.get(name)
const src = URL.createObjectURL(await loadBlob(name))
const page = URL.createObjectURL(
new Blob([`<img src="${src}">`], { type: 'text/html' }))
new Blob([`<body style="margin: 0"><img src="${src}">`], { type: 'text/html' }))
urls.set(name, [src, page])
cache.set(name, page)
return page