Open Bug 1696147 Opened 4 years ago Updated 2 years ago

Allow extension to have no label (icon only)

Categories

(Thunderbird :: Toolbars and Tabs, enhancement)

enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: juraj.masiar, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0

Steps to reproduce:

Thunderbird by default shows "Icons beside Text" in the toolbar so all icons have a text next to them.
While this is great for the build in features, for some addons it would be nice to have "icon only" mode - just like in the toolbar in the Firefox and other browsers.

I'm author of "Scroll Anywhere" addon and after porting it to Thunderbird I've noticed the super long toolbar button (because of the long name).
So I've decided to set the title to empty string and make it "Icon only".

Actual results:

This is however not ideal since the parent node has "min-width: 55px" so the icon will be asymmetrical (see the attachment image).

toolbar[mode="full"] .toolbarbutton-1:not([hideWebExtensionLabel="true"]) {
    min-width: 55px;
}

Expected results:

The super easy fix is to simply reduce the "min-width: 55px;" to 32px.
See the attachment image how this would look.

The more complex fix could be:

  • if user provides empty string, don't show the label at all and for the tooltip fallback to default addon name
  • create new API, for example browserAction.setLabel(), similar to browserAction.setTitle() which would set the label text and again, if empty, then don't show the label
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: