From 63f8f3562a493b2092d71b171a3359077a4081b7 Mon Sep 17 00:00:00 2001 From: Momentry Studio Date: Tue, 27 Oct 2026 06:32:03 +0800 Subject: [PATCH] feat: add VLM tags display to search result cards - Shows up to 5 tags per card - Uses localized language (tag.local) if available, falls back to English - Styled with small rounded badges --- src/views/SearchView.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/SearchView.vue b/src/views/SearchView.vue index a980b74..3d26f4f 100644 --- a/src/views/SearchView.vue +++ b/src/views/SearchView.vue @@ -151,8 +151,11 @@
{{ r.text_content }}
-
-
+
+
+ {{ tag.local || tag.en }} +
+
F{{ r.start_frame }}–{{ r.end_frame }} ({{ formatTime(r.start_time) }}–{{ formatTime(r.end_time) }}) {{ (r.similarity * 100).toFixed(0) }}% @@ -2251,6 +2254,14 @@ function openSource(src: SourceInfo) { line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } +.card-tags { + display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px 6px; +} +.card-tag { + font-size: 10px; padding: 2px 6px; border-radius: 4px; + background: var(--border-light); color: var(--text-secondary); + white-space: nowrap; +} .card-file { padding: 0 8px 4px; font-size: 10px; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;