Merge branch 'main' into fix/reader-infinite-scroll-up
This commit is contained in:
@@ -94,14 +94,14 @@ import ReaderPage from './ReaderPage.vue';
|
||||
});
|
||||
};
|
||||
|
||||
// Calcul de la hauteur du placeholder — miroir exact du maxWidth de ReaderPage
|
||||
// Calcul de la hauteur du placeholder — miroir exact du maxWidth de ReaderPage, zoom inclus
|
||||
const getPlaceholderHeight = (page) => {
|
||||
const dims = page?.dimensions;
|
||||
if (!dims?.width || !dims?.height) return 800;
|
||||
if (!dims?.width || !dims?.height) return Math.round(800 * props.zoom);
|
||||
const displayWidth = windowWidth.value < 1200
|
||||
? Math.min(dims.width, windowWidth.value * 0.95)
|
||||
: Math.min(dims.width, 1200);
|
||||
return Math.round((dims.height / dims.width) * displayWidth);
|
||||
return Math.round((dims.height / dims.width) * displayWidth * props.zoom);
|
||||
};
|
||||
|
||||
const setupObservers = () => {
|
||||
|
||||
Reference in New Issue
Block a user