為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

There is a small margin between the close button and the upper right corner of the screen Vol.3

  • 4 回覆
  • 1 有這個問題
  • 7 次檢視
  • 最近回覆由 hsp3kala

more options

Hi everyone,

The problem is that in Firefox 79 for Linux, there is is a small margin between the close button and the upper right corner of the screen, that prevents me from clicking the close button when I put the mouse pointer at this corner (at the end of the screen).

Because of habit and also because all other windows let me click the close button like this, I would like to ask if there is an option or a particular about:config entry in order to eliminate this margin, so that the clickable area of the close button expands to the upper right corner (end border of the screen) and regain the functionality that I have with all other windows.

A long time ago I had again this question for a previous firefox version:

https://support.mozilla.org/en-US/questions/1251999

I had fixed this problem with the solution provided in the answer of that question back then. Unfortunately, this fix with userChrome.css doesn't work anymore. Is there a way to fix this in firefox 79 for linux ?

Hi everyone, The problem is that in Firefox 79 for Linux, there is is a small margin between the close button and the upper right corner of the screen, that prevents me from clicking the close button when I put the mouse pointer at this corner (at the end of the screen). Because of habit and also because all other windows let me click the close button like this, I would like to ask if there is an option or a particular about:config entry in order to eliminate this margin, so that the clickable area of the close button expands to the upper right corner (end border of the screen) and regain the functionality that I have with all other windows. A long time ago I had again this question for a previous firefox version: https://support.mozilla.org/en-US/questions/1251999 I had fixed this problem with the solution provided in the answer of that question back then. Unfortunately, this fix with userChrome.css doesn't work anymore. Is there a way to fix this in firefox 79 for linux ?
附加的畫面擷圖

所有回覆 (4)

more options

Try this code in userChrome.css:

.titlebar-buttonbox-container toolbarbutton { margin-top: -2px !important; }

more options

Firstly, thank you for your prompt reply.

I tried the above code as is in userChrome.css, it didn't work.

I' ve also tried to modify it a little bit concerning the margins, entering the below code, but didn't work either:

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

.titlebar-buttonbox-container toolbarbutton {margin-top:-5px!important;

margin-right:-9px!important;}

more options

If this is about the close button then try: .titlebar-close {margin-right:-9px !important;}

Not sure if the density setting (normal, compact) has any affect.

See also the Browser Toolbox.

more options

I have tried the:

.titlebar-close {margin-right:-9px !important;}

It doesn't work. I had the density setting to compact from the beginning. This option minimizes the margin but doesn't eliminate it.

I'll also check the Browser Toolbox. Many thanks for your help.