From 655c36067bb93ad718cca552bca2d484fbd053e6 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Sat, 20 Apr 2024 20:25:45 -0700 Subject: [PATCH] Move info link for small structure boxes Signed-off-by: Justin Georgi --- src/css/detect.css | 1 - src/pages/detect.vue | 13 ++++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/css/detect.css b/src/css/detect.css index 3070cd9..650a347 100644 --- a/src/css/detect.css +++ b/src/css/detect.css @@ -129,7 +129,6 @@ .structure-info { position: absolute; - transform: translate(-50%,-50%); z-index: 3; color: rgb(15, 32, 108); background: yellow; diff --git a/src/pages/detect.vue b/src/pages/detect.vue index 8761971..699b3c3 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -17,7 +17,7 @@ = 50) ? 0 : Math.min(10, 50 - boxMin) + + imageCtx.strokeRect(boxLeft, boxTop, boxWidth, boxHeight) this.selectedChip = iChip this.resultData.detections[iChip].beenViewed = true },