Lors de la visite d’un message dans un sujet avec vote, si le premier message n’est pas chargé, par exemple /t/topic/2/10, le style du plugin n’a pas été chargé, ce qui a provoqué un chevauchement du bouton de vote avec le texte du message en vue mobile.
Cet engagement modifie le connecteur en topic-above-posts au lieu de topic-above-posts-stream, afin que le style soit chargé correctement.
Des spécifications ont également été ajoutées pour éviter toute régression.
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.
Donc, vous avez des idées là-dessus ?