모바일에서 접기 섹션이 작동하지 않습니다

  1. https://meta.discourse.org/c/documentation/using-discourse/126?mobile_view=1로 이동합니다
  2. 메뉴를 엽니다
  3. 모든 섹션을 접습니다
    image
  4. 이제 어떤 섹션도 확장할 수 없습니다.

The image showcases a Discourse forum page with various discussion topics listed on the left, while the right side displays a series of faq questions including "Understanding post flags in Discourse" and "Creating and managing calendars." (Captioned by AI)

간단히 살펴보니 여기에서 return이 빠져 있습니다:
https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/sidebar/hamburger-dropdown.gjs#L42

또한 collapsableSections 인자가 전달되지 않는 것으로 보입니다(잘못되었을 수도 있음).
DEV: Convert the entire sidebar to gjs - Pull Request #26978 - discourse/discourse - GitHub 의 부수 효과입니다.

2개의 좋아요

@cvx / @saquetim 여기에 대해 아이디어가 있으신가요?

이 문제가 관리자 사이드바에도 영향을 미치고 있습니다.

다음 PR 이후로 이런 상태였던 것 같습니다: UX: Sections not collapsable in "header dropdown" navigation menu - Pull Request #21604 - discourse/discourse - GitHub

문제는 네비게이션 메뉴가 header dropdown으로 설정되어 있을 때 모바일 뷰나 좁은 화면에서 섹션이 접히도록 강제하고 있지만, sidebar로 설정된 경우를 처리하지 않고 있다는 점입니다.

이 문제를 해결하려면 모바일 모드나 좁은 화면에서 섹션이 항상 접히도록 강제해야 한다고 생각합니다.

아래 PR에서 이 문제를 수정해야 합니다:

2개의 좋아요