From 4ffc026fb9e9ddc8ccff6f09007ce310cdc57307 Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Sun, 15 Jun 2025 01:50:06 +0800 Subject: [PATCH] refactor: improve ThumbnailImage layout --- .../entry-list/templates/EntryNormalItem.tsx | 27 ++++++++----------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx b/apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx index ecb403062..7a0b1004d 100644 --- a/apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx +++ b/apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx @@ -232,9 +232,11 @@ const ThumbnailImage = ({ if (!image && !audio && !video) return null const isSquare = thumbnailRatio === "square" return ( - + {image && - (thumbnailRatio === "square" ? ( + (isSquare ? ( ) : ( + +