fix: Bibliothek-Vorschau zeigt vollständigen Template-Text
All checks were successful
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-ai-compliance (push) Successful in 34s
CI / test-python-backend-compliance (push) Successful in 32s
CI / test-python-document-crawler (push) Successful in 21s
CI / test-python-dsms-gateway (push) Successful in 20s

Trunkierung bei 1.500 Zeichen entfernt, Container auf max-h-[32rem]
erweitert damit langer Inhalt scrollbar aber vollständig lesbar ist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-03-04 15:04:03 +01:00
parent f0357ee473
commit dd404da6cd

View File

@@ -288,9 +288,9 @@ function LibraryCard({
</div>
{expanded && (
<div className="border-t border-gray-100 bg-gray-50 p-4 max-h-64 overflow-y-auto">
<div className="border-t border-gray-100 bg-gray-50 p-4 max-h-[32rem] overflow-y-auto">
<pre className="text-xs text-gray-600 whitespace-pre-wrap font-mono leading-relaxed">
{template.text.slice(0, 1500)}{template.text.length > 1500 ? '\n…' : ''}
{template.text}
</pre>
</div>
)}