FIX: Preserve Post Voting mobile layout when the first post is not loaded

AI-generated summary

small-lovely-cat reported a bug in the post-voting plugin where the mobile layout broke if the first post wasn’t loaded (e.g., accessing /t/topic/2/10 directly). In this scenario, the plugin’s styles failed to load, causing the voting button to overlap with the post text. The attached image demonstrated the visual issue on mobile. The fix involved changing the connector from topic-above-posts-stream to topic-above-posts to ensure styles are always applied, along with adding specs to prevent regression. The changes were submitted in pull request #44481. meta-bot confirmed the fix is merged, stating that the mobile Post Voting layout now correctly applies even when the first post is not loaded.

When visiting a post under a post-voting topic, and the first post is not loaded, say, /t/topic/2/10, the style of the plugin failed to load, causing the voting button to overlap with the post text in mobile view.

This commit change the connector to topic-above-posts instead of topic-above-posts-stream, so that the style is loaded normally.

Also added some spec to avoid regression.

https://github.com/discourse/discourse/pull/44481

So, any ideas about this? :meow_heart:

Fixed in #44481. The mobile Post Voting layout now applies even when the first post isn’t loaded.