From f1c85933c3575cde42267180bfd34a2a44ba3bcf Mon Sep 17 00:00:00 2001 From: Michael Rogers Date: Tue, 2 Aug 2022 12:29:49 -0500 Subject: [PATCH] Imagery thumbnail regression fixes - 5327 (#5569) * Add an active class to thumbnail to indicate current focused image * Differentiate bg color between real-time and fixed * scrollIntoView inline: center * Added watcher for bounds change to trigger thumbnail scroll * Resolve merge conflict with requestHistory change to telemetry collection * Split thumbnail into sub component * Monitor isFixed value to unpause playback status --- .../imagery/components/ImageThumbnail.vue | 68 +++++++++++++++++++ .../imagery/components/ImageryView.vue | 45 ++++++------ .../imagery/components/imagery-view.scss | 15 +++- src/plugins/imagery/mixins/imageryData.js | 1 + 4 files changed, 106 insertions(+), 23 deletions(-) create mode 100644 src/plugins/imagery/components/ImageThumbnail.vue diff --git a/src/plugins/imagery/components/ImageThumbnail.vue b/src/plugins/imagery/components/ImageThumbnail.vue new file mode 100644 index 0000000000..17016527e7 --- /dev/null +++ b/src/plugins/imagery/components/ImageThumbnail.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/src/plugins/imagery/components/ImageryView.vue b/src/plugins/imagery/components/ImageryView.vue index 66d53669b3..8814153342 100644 --- a/src/plugins/imagery/components/ImageryView.vue +++ b/src/plugins/imagery/components/ImageryView.vue @@ -166,26 +166,15 @@ class="c-imagery__thumbs-scroll-area" @scroll="handleScroll" > -
- - - -
{{ image.formattedTime }}
-
+ :image="image" + :active="focusedImageIndex === index" + :selected="focusedImageIndex === index && isPaused" + :real-time="!isFixed" + @click.native="thumbnailClicked(index)" + />