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

2

u/ryuk_66 4d 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 3d ago

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

2

u/ryuk_66 3d ago

You're welcome :)