Anchor tracker to local action bar instead of post-level wrapper

This commit is contained in:
2026-02-26 00:55:31 +01:00
parent e28eb052b7
commit 51dc2c191c

View File

@@ -463,9 +463,9 @@ function getDirectActionAnchorInPost(postElement, buttonBar) {
return null; return null;
} }
return getTopLevelAnchorWithinPost(postElement, resolvedButtonBar) // Use the local action bar container directly.
|| getTrackerInsertionAnchorInPost(postElement, resolvedButtonBar) // Promoting to post-level wrappers can place the marker below the entire comments block.
|| resolvedButtonBar; return resolvedButtonBar;
} }
function getTopLevelAnchorWithinPost(postElement, element) { function getTopLevelAnchorWithinPost(postElement, element) {