From 12d142db9d97f1e0a301ac3c8b831f5e57bedecf Mon Sep 17 00:00:00 2001 From: gallery Date: Sun, 15 Nov 2026 22:08:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=A6=E6=83=85=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E5=88=87=E6=8D=A2=E5=8D=A1=E6=97=A7=E5=9B=BE=EF=BC=9A?= =?UTF-8?q?=E6=94=B9=E7=94=A8=E7=BC=A9=E7=95=A5=E5=9B=BE=E5=B9=B6=E6=8C=89?= =?UTF-8?q?=20media.id=20=E9=87=8D=E5=BB=BA=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/sidebar/MediaSidebar/MediaSidebar.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/src/components/sidebar/MediaSidebar/MediaSidebar.tsx b/ui/src/components/sidebar/MediaSidebar/MediaSidebar.tsx index b1f1ef2..24ee8ec 100644 --- a/ui/src/components/sidebar/MediaSidebar/MediaSidebar.tsx +++ b/ui/src/components/sidebar/MediaSidebar/MediaSidebar.tsx @@ -166,8 +166,10 @@ const SidebarContent = ({ media, hidePreview }: SidebarContentProps) => { const { updateSidebar } = useContext(SidebarContext) const { t } = useTranslation() let previewImage = null - if (media.highRes) previewImage = media.highRes - else if (media.thumbnail) previewImage = media.thumbnail + // Use the (much smaller) thumbnail for the sidebar preview so switching + // photos is instant instead of waiting for the huge high-res original. + if (media.thumbnail) previewImage = media.thumbnail + else if (media.highRes) previewImage = media.highRes const imageAspect = previewImage?.width && previewImage?.height @@ -219,6 +221,7 @@ const SidebarContent = ({ media, hidePreview }: SidebarContentProps) => { style={{ paddingTop: `${Math.min(imageAspect, 0.75) * 100}%` }} >