搜尋 Mozilla 技術支援網站

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

了解更多

Auto-complete in awesomebar is too big!

more options

I recently updated from version 47ish to 54.0.1 and when I type in an address into the awesome bar it's the whole width of the window and it looks absolutely terrible, per the attachment.

If you look at the screenshots in https://support.mozilla.org/en-US/kb/awesome-bar-search-firefox-bookmarks-history-tabs the dropdown is only as wide as the address bar. If the screenshot doesn't attach (it seems to be spinning it's wheels atm), refer to https://pbs.twimg.com/media/DG_1rTHU0AEtNvF.jpg:large for example.

How do I get back to the proper address bar width instead of this hideous looking full window width auto complete?

I recently updated from version 47ish to 54.0.1 and when I type in an address into the awesome bar it's the whole width of the window and it looks absolutely terrible, per the attachment. If you look at the screenshots in https://support.mozilla.org/en-US/kb/awesome-bar-search-firefox-bookmarks-history-tabs the dropdown is only as wide as the address bar. If the screenshot doesn't attach (it seems to be spinning it's wheels atm), refer to https://pbs.twimg.com/media/DG_1rTHU0AEtNvF.jpg:large for example. How do I get back to the proper address bar width instead of this hideous looking full window width auto complete?

所有回覆 (4)

more options

See e.g.:


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 */

#PopupAutoCompleteRichResult{width: 1000px !important;max-width: 1000px !important; margin-left: 0 !important;}

  • create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
  • paste the code in the userChrome.css file in the editor window
  • make sure that the userChrome.css file starts with the default @namespace line
  • make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
    otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

more options

That works if the browser is maximized, what if it's not? There's no way to restore back to previous behaviour?

more options

You would have to adjust the width value and make them smaller if they exceed to width of the Firefox window. There is no way to restore the way it worked previously.

more options

You can use custom style rules to set a different width, but the feature of Firefox 43-47 that sized the drop-down to the length of the address bar isn't possible with such simple tweaks.

Speaking of the old style, if you prefer having the site title and URL on different lines, you could consider a more elaborate set of style rules for your userChrome.css file:

https://www.jeffersonscher.com/gm/url-bar-tweaks.html

You might only need the indented part between

@-moz-document url(chrome://browser/content/browser.xul) {

and the last

}