Browse Source

Fixed checkbox render performance (#448)

Alex 3 years ago
parent
commit
0b69feda40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/src/routes/photos/index.svelte

+ 1 - 1
web/src/routes/photos/index.svelte

@@ -254,7 +254,7 @@
 					>
 					>
 						<!-- Date group title -->
 						<!-- Date group title -->
 						<p class="font-medium text-sm text-immich-fg mb-2 flex place-items-center h-6">
 						<p class="font-medium text-sm text-immich-fg mb-2 flex place-items-center h-6">
-							{#if (selectedGroupThumbnail === groupIndex && isMouseOverGroup) || isMultiSelectionMode}
+							{#if (selectedGroupThumbnail === groupIndex && isMouseOverGroup) || selectedGroup.has(groupIndex)}
 								<div
 								<div
 									in:fly={{ x: -24, duration: 200, opacity: 0.5 }}
 									in:fly={{ x: -24, duration: 200, opacity: 0.5 }}
 									out:fly={{ x: -24, duration: 200 }}
 									out:fly={{ x: -24, duration: 200 }}