fix: markdown rendering and scrolling

fix: markdown rendering for search results
This commit is contained in:
Per Stark
2025-05-19 11:29:32 +02:00
parent 724c1f79cc
commit 30b9e7673c
6 changed files with 63 additions and 51 deletions

View File

@@ -30,7 +30,8 @@
</a>
</h3>
<div class="prose prose-sm text-sm truncate text-base-content/80 mb-3">
<div class="markdown-content prose prose-sm text-sm text-base-content/80 mb-3 overflow-hidden line-clamp-6"
data-content="{{result.highlighted_text | escape}}">
{% if result.highlighted_text %}
{{ result.highlighted_text | escape }}
{% elif result.text %}