🐞 fix: Update prompt display to show newlines
This commit is contained in:
@@ -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>
|
<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>
|
</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" />
|
<hr class="my-2" />
|
||||||
<p class="text-sm"><strong>Created:</strong> {formatDate(created_at)} • <strong>Updated:</strong> {formatDate(updated_at)}</p>
|
<p class="text-sm"><strong>Created:</strong> {formatDate(created_at)} • <strong>Updated:</strong> {formatDate(updated_at)}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user