Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-15 12:18:57 +08:00
parent 1b0b966e76
commit e566a358dd
6 changed files with 4 additions and 23 deletions

View File

@@ -54,7 +54,8 @@ class ImageModel {
bool? _isLongPic;
bool? _isLivePhoto;
bool get isLongPic => _isLongPic ??= (height / width) > Style.imgMaxRatio;
bool get isLongPic =>
_isLongPic ??= (height / width) > Style.imgMaxRatio && width > 100;
bool get isLivePhoto =>
_isLivePhoto ??= enableLivePhoto && liveUrl?.isNotEmpty == true;