From 545b42c99a16ec2c1c8afd391656c9f5559315eb Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Mon, 13 May 2024 21:36:49 -0700 Subject: [PATCH] Scroll hidden chips into view on select Signed-off-by: Justin Georgi --- src/pages/detect.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/detect.vue b/src/pages/detect.vue index 699b3c3..8cb8b82 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -29,6 +29,7 @@
{ + document.getElementById('selected_chip').scrollIntoView({behavior: 'smooth', block: 'nearest'}) + }) }, deleteChip ( iChip ) { f7.dialog.confirm(`${this.resultData.detections[iChip].label} is identified with ${this.resultData.detections[iChip].confidence.toFixed(1)}% confidence. Are you sure you want to delete it?`, () => { -- 2.49.1