Quando si visita un post all’interno di un topic con votazione, e il primo post non viene caricato, ad esempio /t/topic/2/10, lo stile del plugin non si carica correttamente, causando la sovrapposizione del pulsante di votazione con il testo del post nella vista mobile.
Questo commit modifica il connettore da topic-above-posts-stream a topic-above-posts, in modo che lo stile venga caricato normalmente.
Sono stati inoltre aggiunti alcuni test per evitare regressioni.
main ← small-lovely-cat:fix-mobile-post-vote
merged 09:53AM - 13 Oct 26 UTC
When visiting a post in a post-voting topic without the first post loaded (e.g. … `/t/topic/2/10`), the `post-voting-topic` body class was never added, so the plugin's topic-level styles didn't apply. This happened on every viewport. It was most visible on mobile, where the voting buttons overlapped the post text.
<img width="510" height="220" alt="image" src="https://github.com/user-attachments/assets/0b59e64c-3047-4032-af8d-613b9196999f" />
The class was added from the `topic-above-post-stream` outlet, which is hidden when content above the first post is hidden. This change moves the connector to `topic-above-posts`, which always renders with the post stream.
Also added an acceptance test to prevent regressions.
Allora, qualcuno ha idee a riguardo?