# 수정: 첫 게시물이 로드되지 않았을 때 게시 투표 모바일 레이아웃 유지

**URL:** <https://meta.discourse.org/t/fix-preserve-post-voting-mobile-layout-when-the-first-post-is-not-loaded/414503>\
**Category:** Bug\
**Tags:** post-voting\
**Created:** [10월 12, 2026, 12:21오후 UTC](https://meta.discourse.org/t/fix-preserve-post-voting-mobile-layout-when-the-first-post-is-not-loaded/414503 "2026-10-12T12:21:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![small-lovely-cat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/small-lovely-cat/32/579066_2.png) [@small-lovely-cat](https://meta.discourse.org/u/small-lovely-cat)\
**Post date:** [10월 12, 2026, 12:21오후 UTC](https://meta.discourse.org/t/fix-preserve-post-voting-mobile-layout-when-the-first-post-is-not-loaded/414503/1 "2026-10-12T12:21:20Z")

</div>

투표가 포함된 토픽의 게시물을 방문할 때, 첫 번째 게시물이 로드되지 않는 경우(예: `/t/topic/2/10`), 플러그인 스타일이 로드되지 않아 모바일 뷰에서 투표 버튼이 게시물 텍스트와 겹치는 문제가 발생했습니다.

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/d/3/dd3232a1aff9b6d9f6ab9765bdf29a9823d7e4c3.png)

이 커밋에서는 커넥터를 `topic-above-posts-stream` 대신 `topic-above-posts`로 변경하여 스타일이 정상적으로 로드되도록 했습니다.

또한 회귀 테스트를 방지하기 위해 일부 스펙을 추가했습니다.

> <https://github.com/discourse/discourse/pull/44481>
>
> 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.

---

_[View the full topic](https://meta.discourse.org/t/fix-preserve-post-voting-mobile-layout-when-the-first-post-is-not-loaded/414503)._
