Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

}