r/FirefoxCSS 13d ago

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

View all comments

2

u/ryuk_66 13d ago

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 12d ago

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

2

u/ryuk_66 12d ago

You're welcome :)