inline commenting - auto scroll to keep new form on screen

This commit is contained in:
rimu 2025-01-17 16:22:59 +13:00
parent 0349128be1
commit cee5c727fd

View file

@ -75,7 +75,7 @@
<a href="{{ url_for('post.add_reply', post_id=post_reply.post.id, comment_id=post_reply.id) }}"
hx-get="{{ url_for('post.add_reply_inline', post_id=post_reply.post.id, comment_id=post_reply.id) }}"
hx-target="#reply_to_{{ post_reply.id }}"
hx-swap="innerHTML"
hx-swap="innerHTML focus-scroll:true"
rel="nofollow noindex"><span class="fe fe-reply"></span> reply</a>
{% else -%}
<a href="{{ url_for('auth.login', next='/post/' + str(post_reply.post.id)) }}"><span class="fe fe-reply"></span> reply</a>