🐞 fix: Update prompt display to show newlines

This commit is contained in:
Keith Solomon
2025-07-22 11:58:00 -05:00
parent ac883ea1e9
commit 2f84569e60

View File

@@ -49,7 +49,9 @@ const formatDate = (dateStr: string | undefined) => {
<a class="bg-green-600 text-white px-2 py-0 rounded text-sm hover:bg-green-700 transition-colors duration-300" href={`/edit?slug=${slug}`}>Edit</a>
</div>
<p class="my-2 px-2 text-balance">{description}</p>
<p class="my-2 px-2 text-balance" set:html={description.replace(/\n/g, '<br />')} />
<hr class="my-2" />
<p class="text-sm"><strong>Created:</strong> {formatDate(created_at)} &bull; <strong>Updated:</strong> {formatDate(updated_at)}</p>
</div>