# Collapsing sections doesn't work on mobile

**URL:** https://meta.discourse.org/t/collapsing-sections-doesnt-work-on-mobile/352956
**Category:** Bug
**Tags:** fixed, doc-categories
**Created:** [February 18, 2025, 7:04pm UTC](https://meta.discourse.org/t/collapsing-sections-doesnt-work-on-mobile/352956 "2025-02-18T19:04:43Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![saquetim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saquetim/32/116400_2.png) [@saquetim](https://meta.discourse.org/u/saquetim)
#### Post date: [February 19, 2025, 3:26am UTC](https://meta.discourse.org/t/collapsing-sections-doesnt-work-on-mobile/352956/3 "2025-02-19T03:26:16Z")

</div>

This issue is also affecting the admin sidebar.

It looks like it has been like this since: [UX: Sections not collapsable in "header dropdown" navigation menu by tgxworld · Pull Request #21604 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/21604)

The problem is that we’re forcing the sections to be collapsable in mobile view or narrow screens when the navigation menu is set to `header dropdown`, but we’re not handling the case where it is set to `sidebar`.

To address the issue, I believe we should force the sections to always be collapsable when in mobile mode or on narrow screens.

The PR below should fix this:

[https://github.com/discourse/discourse/pull/31383](https://github.com/discourse/discourse/pull/31383)

---

_[View the full topic](https://meta.discourse.org/t/collapsing-sections-doesnt-work-on-mobile/352956)._
