搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Tab Close Buttons Got Too Big After v59 Update

  • 7 回覆
  • 1 有這個問題
  • 53 次檢視
  • 最近回覆由 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!
附加的畫面擷圖

由 Slouch 於 修改

被選擇的解決方法

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;
}
從原來的回覆中察看解決方案 👍 0

所有回覆 (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.

由 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.

由 Slouch 於 修改

more options

選擇的解決方法

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;
}

由 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.