スマホでセクションの折りたたみは機能しません

  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 が欠けているようです。

また、collapsableSections 引数が渡されていないようです(間違っている可能性もあります)。
DEV: Convert the entire sidebar to gjs by CvX · Pull Request #26978 · discourse/discourse · GitHub の副作用です。

「いいね!」 2

@CvX / @saquetim 何かアイデアはありますか?

この問題は管理者サイドバーにも影響しています。

これは、UX: Sections not collapsable in "header dropdown" navigation menu by tgxworld · Pull Request #21604 · discourse/discourse · GitHub の時点からこのようになっているようです。

問題は、ナビゲーションメニューが header dropdown に設定されている場合に、モバイルビューまたは狭い画面でセクションを常に折りたたみ可能に強制しているが、sidebar に設定されている場合のケースを処理していないことです。

この問題に対処するために、モバイルモードまたは狭い画面の場合、セクションを常に折りたたみ可能に強制すべきだと考えられます。

以下の PR がこれを修正するはずです。

「いいね!」 2