From 93462aafbcaf4e5fe5b1ee5a695f829dfe073696 Mon Sep 17 00:00:00 2001 From: Sergey Kondrikov Date: Wed, 12 Jul 2023 05:12:19 +0300 Subject: [PATCH] feat(web): improve range selection (#3193) * Improve range selection * Add comments * Add PR feedback * Remove focus outline from select asset button --------- Co-authored-by: Alex Tran --- .../assets/thumbnail/thumbnail.svelte | 4 +- .../photos-page/asset-date-group.svelte | 66 ++------------ .../components/photos-page/asset-grid.svelte | 86 ++++++++++++++++--- web/src/lib/stores/asset-interaction.store.ts | 32 ++++++- web/src/lib/utils/timeline-util.ts | 51 +++++++++++ 5 files changed, 163 insertions(+), 76 deletions(-) create mode 100644 web/src/lib/utils/timeline-util.ts diff --git a/web/src/lib/components/assets/thumbnail/thumbnail.svelte b/web/src/lib/components/assets/thumbnail/thumbnail.svelte index 87c54942d5..68131f67e0 100644 --- a/web/src/lib/components/assets/thumbnail/thumbnail.svelte +++ b/web/src/lib/components/assets/thumbnail/thumbnail.svelte @@ -84,9 +84,7 @@ {#if !readonly && (mouseOver || selected || selectionCandidate)}