limitImageWidth should only be enabled with ReaderMode.continuousTopToBottom

This commit is contained in:
2024-11-21 21:38:41 +08:00
parent 4d55e6a72f
commit f4b9cb5abe

View File

@@ -473,7 +473,9 @@ class _ContinuousModeState extends State<_ContinuousMode>
);
var width = MediaQuery.of(context).size.width;
var height = MediaQuery.of(context).size.height;
if(appdata.settings['limitImageWidth'] && width / height > 0.7) {
if (appdata.settings['limitImageWidth'] &&
width / height > 0.7 &&
reader.mode == ReaderMode.continuousTopToBottom) {
width = height * 0.7;
}