Skip to content

Commit bb4cc5c

Browse files
add-uosdeepin-bot[bot]
authored andcommitted
fix(ui): preserve aspect ratio in thumbnail image display
Change fillMode from PreserveAspectCrop to PreserveAspectFit to ensure thumbnail images maintain their original aspect ratio without cropping, preventing distortion of image content in the thumbnail delegate. log: preserve aspect ratio in thumbnail image display bug: https://pms.uniontech.com/bug-view-346079.html
1 parent fdca12d commit bb4cc5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qml/ThumbnailDelegate/ThumbnailImage.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Item {
3030
anchors.centerIn: thumbnailImage
3131
asynchronous: true
3232
cache: false
33-
fillMode: Image.PreserveAspectCrop
33+
fillMode: Image.PreserveAspectFit
3434
height: thumbnailImage.height
3535
// 用于在旋转过程中不显示白边,图片大小比例 1 -> sqrt(2) -> 1
3636
scale: {

0 commit comments

Comments
 (0)