From 1a560c64c7ddb0666a211d071d0dad4f17996aad Mon Sep 17 00:00:00 2001 From: "Calum H. (IMB11)" Date: Fri, 28 Aug 2026 12:04:52 +0100 Subject: [PATCH] fix: screenshots page lag + better virtualization pass --- .../components/ui/screenshots-page/card.vue | 119 ++++++++++-- .../components/ui/screenshots-page/group.vue | 76 ++++++-- .../components/ui/screenshots-page/index.vue | 166 +++++++++++------ .../ui/screenshots-page/section.vue | 37 +++- apps/app/src/api/instance.rs | 30 ++- .../instance/screenshots/reconciliation.rs | 173 ++++++++---------- 6 files changed, 413 insertions(+), 188 deletions(-) diff --git a/apps/app-frontend/src/components/ui/screenshots-page/card.vue b/apps/app-frontend/src/components/ui/screenshots-page/card.vue index adf1222ef8..f1de4c6532 100644 --- a/apps/app-frontend/src/components/ui/screenshots-page/card.vue +++ b/apps/app-frontend/src/components/ui/screenshots-page/card.vue @@ -3,11 +3,16 @@ @@ -91,7 +166,7 @@ watch( ref="card" role="button" tabindex="0" - class="group relative aspect-video min-w-0 cursor-pointer overflow-hidden rounded-xl border border-solid border-surface-5 bg-surface-2 p-0 text-left shadow-sm transition-[filter] hover:brightness-110 focus-visible:outline focus-visible:outline-2 focus-visible:outline-brand" + class="group relative isolate aspect-video min-w-0 cursor-pointer overflow-hidden rounded-xl border border-solid border-surface-5 bg-surface-2 p-0 text-left shadow-sm transition-[filter] hover:brightness-110 focus-visible:outline focus-visible:outline-2 focus-visible:outline-brand" :class="{ '!border-contrast brightness-110': selected, '!border-brand ring-2 ring-brand animate-pulse': highlighted, @@ -115,7 +190,7 @@ watch( > -