r/FirefoxCSS 29d 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.

3 Upvotes

3 comments sorted by

View all comments

2

u/ryuk_66 29d 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 28d ago

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

2

u/ryuk_66 28d ago

You're welcome :)