fix: use vlm_description_localized directly instead of text_content
- Card now shows vlm_description_localized directly (no 【ZH-TW】 label) - Avoids incorrect language labels from Core API text_content field - Japanese content now displays correctly without wrong prefix
This commit is contained in:
@@ -151,8 +151,9 @@
|
|||||||
<svg class="card-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"/></svg>
|
<svg class="card-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"/></svg>
|
||||||
</span><span v-html="highlightMatch(r._isPerson ? r.file_name : parseSummary(r.summary).text, r.search_query)"></span>
|
</span><span v-html="highlightMatch(r._isPerson ? r.file_name : parseSummary(r.summary).text, r.search_query)"></span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="r._isPerson" class="card-text card-person-stats">{{ r.text_content }}</div>
|
<div v-if="r._isPerson" class="card-text card-person-stats">{{ r.text_content }}</div>
|
||||||
<div v-if="r.text_content && !r._isPerson" class="card-text" v-html="highlightMatch(r.text_content.slice(0, 120), r.search_query)"></div>
|
<div v-if="r.vlm_description_localized && !r._isPerson" class="card-text">{{ r.vlm_description_localized.slice(0, 120) }}</div>
|
||||||
|
<div v-else-if="r.text_content && !r._isPerson && !r.vlm_description_localized" class="card-text" v-html="highlightMatch(r.text_content.slice(0, 120), r.search_query)"></div>
|
||||||
<div v-if="r.vlm_tags && r.vlm_tags.length" class="card-tags">
|
<div v-if="r.vlm_tags && r.vlm_tags.length" class="card-tags">
|
||||||
<span v-for="(tag, i) in r.vlm_tags.slice(0, 5)" :key="i" class="card-tag">{{ tag.local || tag.en }}</span>
|
<span v-for="(tag, i) in r.vlm_tags.slice(0, 5)" :key="i" class="card-tag">{{ tag.local || tag.en }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user