mirror of
https://github.com/svemagie/indiekit-endpoint-activitypub.git
synced 2026-04-02 15:44:58 +02:00
fix: render compose reply context with card content styling (v2.8.2)
The reply context on the compose page rendered raw Mastodon HTML in a bare <blockquote>, causing hashtag links to display as block elements (each on its own line with # separated from the tag name). Wrapping the content in a <div class="ap-card__content"> applies the same inline hashtag/mention/invisible-span CSS rules used in the timeline. Confab-Link: http://localhost:8080/sessions/cc343b15-8d10-43cd-a48f-ca912eb79b83
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if replyContext.content and (replyContext.content.html or replyContext.content.text) %}
|
||||
<blockquote class="ap-compose__context-text">
|
||||
<div class="ap-card__content ap-compose__context-text">
|
||||
{{ replyContext.content.html | safe if replyContext.content.html else replyContext.content.text | truncate(300) }}
|
||||
</blockquote>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{{ replyTo }}" class="ap-compose__context-link" target="_blank" rel="noopener">{{ replyTo }}</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user