# An additional scrollbar appears when the component is enabled

**URL:** https://meta.discourse.org/t/an-additional-scrollbar-appears-when-the-component-is-enabled/271988
**Category:** Bug
**Tags:** sidebar-theme-toggle
**Created:** [March 17, 2023, 4:15am UTC](https://meta.discourse.org/t/an-additional-scrollbar-appears-when-the-component-is-enabled/271988 "2023-03-17T04:15:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [March 17, 2023, 4:15am UTC](https://meta.discourse.org/t/an-additional-scrollbar-appears-when-the-component-is-enabled/271988/1 "2023-03-17T04:15:51Z")

</div>

Hi, there has been a regression in the past few days of Discourse commits where the browser / OS scrollbar appears always visible with a few pixels of vertical slop when the Sidebar Theme Toggle is enabled. It’s happening here on Discourse Meta and also on my forum, currently on 3.1.0.beta3 (6b5743ba3c). It happens with Firefox and Chromium. I imagine that nobody has noticed it because most OSes these days are defaulting to skinny / disappearing scrollbars, but I’m rather old-school. 🕶

 ![Screenshot from 2023-03-16 23-13-00](https://global.discourse-cdn.com/meta/original/4X/b/f/3/bf3d9162242c32346ebd2ad1d8b67e1d7573a8ef.png)

* * *

_ **Edit:** _ _Looks like I can get rid of it with this quick dirty workaround for now:_

```plaintext
.sidebar-footer-container {
    padding-bottom: .5em !important;
}
```

---

<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: [March 17, 2023, 2:23pm UTC](https://meta.discourse.org/t/an-additional-scrollbar-appears-when-the-component-is-enabled/271988/2 "2023-03-17T14:23:00Z")

</div>

I just made a minor update to fix this

[https://github.com/discourse/discourse-sidebar-theme-toggle/commit/4556207b7c824bf5a56c04fbe4dd444a1b6fd12c](https://github.com/discourse/discourse-sidebar-theme-toggle/commit/4556207b7c824bf5a56c04fbe4dd444a1b6fd12c)

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [March 17, 2023, 2:24pm UTC](https://meta.discourse.org/t/an-additional-scrollbar-appears-when-the-component-is-enabled/271988/3 "2023-03-17T14:24:13Z")

</div>

Thanks a lot @awesomerobot for the quick fix! Works great.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [July 18, 2023, 1:41pm UTC](https://meta.discourse.org/t/an-additional-scrollbar-appears-when-the-component-is-enabled/271988/4 "2023-07-18T13:41:24Z")

</div>


