Prevent reader page placeholder from getting too long in height

the "SpinnerImage" has a default height styling of 100% which caused the loading placeholder to take up all the available scroll height
This commit is contained in:
schroda
2024-12-22 16:07:55 +01:00
parent 294a6f45a4
commit 11455427bf

View File

@@ -125,7 +125,12 @@ export const getImagePlaceholderStyling = (
}), }),
}; };
case ReaderPageScaleMode.ORIGINAL: case ReaderPageScaleMode.ORIGINAL:
return defaultStyling; return {
...defaultStyling,
...applyStyles(isContinuousVerticalReadingMode(readingMode), {
height: undefined,
}),
};
default: default:
throw new Error(`Unexpected "PageScaleMode" (${pageScaleMode})`); throw new Error(`Unexpected "PageScaleMode" (${pageScaleMode})`);
} }