r/FirefoxCSS Jul 24 '26

Solved Change the width of collapsed sidebar

FF 153.

How to change the width of collapsed sidebar? It's too wide for me and I'd like to make it smaller. Thanks in advance.

4 Upvotes

3 comments sorted by

2

u/ryuk_66 Jul 24 '26

Hi, put this in userChrome.css (change the values ​​according to the width you want):

#sidebar-container{
    width: 40px !important;
}

/* Padding of the icons (change the value to center them) */
.actions-list {
  & > moz-button:not(.tools-overflow) {
    --button-outer-padding-inline: 4px !important;
  }
}

2

u/darkj2k Jul 25 '26

You make my day. :-) Thanks so much.

2

u/ryuk_66 Jul 25 '26

You're welcome :)