Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

How to change space between folder icon and text on personal toolbar?

  • 4 réponses
  • 1 a ce problème
  • 1 vue
  • Dernière réponse par cor-el

more options

I have a few folders on the personal toolbar with just a letter to indicate what they are, but on the theme I'm using, the letter is too far away from the folder it belongs to and partially falls under the next folder icon. I don't want to increase the spacing between all icons to show the full letter, as this decreases the amount of icons you can have on the toolbar. Instead I want to decrease the space between the folder and text belonging to it, so it's right next to it instead of 5 pixels away.

I've found various entries to change padding and margins in userChrome.css, but it's always for around the icon, I don't know where to look to close the space between the icon and its corresponding text.

Any help would be greatly appreciated, thanks.

I have a few folders on the personal toolbar with just a letter to indicate what they are, but on the theme I'm using, the letter is too far away from the folder it belongs to and partially falls under the next folder icon. I don't want to increase the spacing between all icons to show the full letter, as this decreases the amount of icons you can have on the toolbar. Instead I want to decrease the space between the folder and text belonging to it, so it's right next to it instead of 5 pixels away. I've found various entries to change padding and margins in userChrome.css, but it's always for around the icon, I don't know where to look to close the space between the icon and its corresponding text. Any help would be greatly appreciated, thanks.

Solution choisie

Did you check the value of the margin-left of the text?

You can set negative margin values if necessary.

#PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }

Add .bookmark-item[container] if you only need this for folder items

#PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }
Lire cette réponse dans son contexte 👍 0

Toutes les réponses (4)

more options

Solution choisie

Did you check the value of the margin-left of the text?

You can set negative margin values if necessary.

#PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }

Add .bookmark-item[container] if you only need this for folder items

#PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }
more options

I just tried both codes in the userChrome.css file, and the result each time was that the icons themselves were moved closer together instead of staying where they were. The text still stayed partially under the next folder icon. So it seemed to affect the icons and did nothing for the text placement next to the icons.

more options

Actually, it does work. I just deleted everything else from my userChrome.css file and tried again with a clean css file with nothing but your first example in it, and it did work. Some existing lines probably were conflicting with the new code. So I'll go back and add in the others one by one to see that there's no conflict.

Many thanks for the help, appreciate it.

more options

You're welcome.

If you have style rules that work on all toolbars then you may need to override them for #PlacesToolbarItems