# Index button on smaller screens

**URL:** https://meta.discourse.org/t/index-button-on-smaller-screens/312306
**Category:** Feature
**Tags:** disco-toc
**Created:** [June 16, 2024, 11:41pm UTC](https://meta.discourse.org/t/index-button-on-smaller-screens/312306 "2024-06-16T23:41:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [June 16, 2024, 11:41pm UTC](https://meta.discourse.org/t/index-button-on-smaller-screens/312306/1 "2024-06-16T23:41:55Z")

</div>

If there is no space the index is hidden by default.

In this case, a dynamic bar shows up at the bottom with an index button. Like [here](https://meta.discourse.org/t/integrations-index/308033).

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/f/1/2f18c23a975aeeaf398f3f585c08e5c7cf32e5c9.png)

The above only happens if there is 1 replies or more. Most of my docs have zero replies, like [here](https://meta.discourse.org/t/configure-wp-discourse-webhooks/311552) - in this case the same index button does not show up.

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

Not sure if this is a bug, or should be a feature 😛

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 17, 2024, 2:25am UTC](https://meta.discourse.org/t/index-button-on-smaller-screens/312306/2 "2024-06-17T02:25:56Z")

</div>

@awesomerobot I think we we recently refactored this, is this an on-purpose omission?

I totally get that documentation categories may want this (and to restrict replying)

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [June 17, 2024, 3:45am UTC](https://meta.discourse.org/t/index-button-on-smaller-screens/312306/3 "2024-06-17T03:45:35Z")

</div>

> [@sam](#):
>
> and to restrict replying

Unless I misunderstand this can already be prevented with permissions or closing topics 🤔

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [June 17, 2024, 4:31pm UTC](https://meta.discourse.org/t/index-button-on-smaller-screens/312306/4 "2024-06-17T16:31:04Z")

</div>

Hmm I see, this is narrow views in desktop view, not mobile view, right?

It seems by default we hide the topic progress bar on desktop with \< 2 replies, so because of this the table of contents can’t appear.

Curiously, we don’t do this on mobile… so maybe we should remove it.

```js
const hideOnShortStream = !this.site.mobileView && filteredPostsCount < 2;

```
