Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

Tab Close Buttons Got Too Big After v59 Update

  • 7 Antworten
  • 1 hat dieses Problem
  • 28 Aufrufe
  • Letzte Antwort von cor-el

more options

After updating FF from 58 to 59, my tab close buttons (X) have gotten larger.

Apparently, Firefox is no longer respecting the following rule in my userChrome.css file...

.tab-close-button *
{
 width: 14px !important;
 height: 14px !important;
 font-weight: bold !important;
}

Is there now a different way to change the tab close button size, or is this possibly a bug?

See attached images showing close button in v58 & v59.

Thanks!

After updating FF from 58 to 59, my tab close buttons (X) have gotten larger. Apparently, Firefox is no longer respecting the following rule in my userChrome.css file... .tab-close-button * { width: 14px !important; height: 14px !important; font-weight: bold !important; } Is there now a different way to change the tab close button size, or is this possibly a bug? See attached images showing close button in v58 & v59. Thanks!
Angefügte Screenshots

Geändert am von Slouch

Ausgewählte Lösung

The close X only consists of a SVG image, so you probably only need to remove the "*" to make your current CSS rule work. Note that bold won't work, you would have to create your own image.

Add code to the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

.tab-close-button {
 width: 14px !important;
 height: 14px !important;
}
Diese Antwort im Kontext lesen 👍 0

Alle Antworten (7)

more options
more options

Thanks for your reply, and the cornucopia of links above. However, they are not related to my inquiry.

My code was not overridden, because my userChrome.css file has not changed since version 58. Nothing else was added, changed, or removed either.

It was only the update to version 59 that changed the size of the button.

And now the code I posted above is apparently being ignored by FF.

I would appreciate some sample CSS code that could be used to change the size of the tab close button, or at least confirmation that the code I'm using above to achieve this is correct.

Geändert am von Slouch

more options

Please do this to find out : SAFE MODE

In Firefox Safe mode these changes are effective:

  • all extensions are disabled (about:addons)
  • default theme is used (no persona)
  • userChrome.css and userContent.css are ignored (chrome folder)
  • default toolbar layout is used (file: localstore-safe.rdf)
  • Javascript JIT compilers are disabled (prefs: javascript.options.*jit)
  • hardware acceleration is disabled (Options > Advanced > General)
  • plugins are not affected
  • preferences are not affected

TEST

more options

Thanks for your reply.

I ran FF 59 in Safe Mode.

What should I look for?

The tab close buttons are still the same size as in Normal mode (the X is too large).

See attached image.

Geändert am von Slouch

more options

Ausgewählte Lösung

The close X only consists of a SVG image, so you probably only need to remove the "*" to make your current CSS rule work. Note that bold won't work, you would have to create your own image.

Add code to the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

.tab-close-button {
 width: 14px !important;
 height: 14px !important;
}

Geändert am von cor-el

more options

Thank you, cor-el. That did indeed work!

Any idea why it worked with the "*" in the previous version, but not the latest one?

Regards.

more options

You're welcome.

In Firefox 58 and older this was a toolbar button with an image.