본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How can I reduce the line spacing in the Firefox address-bar drop-down list

  • 3 답장
  • 5 이 문제를 만남
  • 28 보기
  • 최종 답변자: OneMoreName

more options

Just tried Firefox 54.0.1 and 52.2.1esr, moving up from 50.0.2, and in both of these newer versions the address-bar drop-down list (list of previously visited sites that drops down when you type into the address bar) is very widely spaced. Lines take about twice as much vertical space as in 50.0.2, and there is much much too much white space between them. Thre thread in url https://support.mozilla.org/en-US/questions/1155533 shows what I am seeing, but the suggestion there does not change the line spacing. Note that the search bar dropdown still is reasonably compact, but the address bar dropdown is not. How can I get the vertical spacing of lines back to a good single-space image?

Just tried Firefox 54.0.1 and 52.2.1esr, moving up from 50.0.2, and in both of these newer versions the address-bar drop-down list (list of previously visited sites that drops down when you type into the address bar) is very widely spaced. Lines take about twice as much vertical space as in 50.0.2, and there is much much too much white space between them. Thre thread in url https://support.mozilla.org/en-US/questions/1155533 shows what I am seeing, but the suggestion there does not change the line spacing. Note that the search bar dropdown still is reasonably compact, but the address bar dropdown is not. How can I get the vertical spacing of lines back to a good single-space image?

선택된 해결법

Just in case it wasn't mentioned anywhere, the userChrome.css file is only read at startup, so it's a little inconvenient for tweaking...

You also could consider reducing the height of each row from 30 pixels to 26 pixels. The rule for that would be:

#PopupAutoCompleteRichResult .autocomplete-richlistitem {
  height: 26px !important;
  min-height: 26px !important;
}

I'm attaching a screenshot showing how this appears on mine. The border was added just to make the effect clearer and isn't included in the above rule.

Of course, if 26 pixels is still too tall, you probably could take it down to some smaller number of pixels. It gets quite cramped at 20 pixels.

문맥에 따라 이 답변을 읽어주세요 👍 2

모든 댓글 (3)

more options

That would be to remove padding and border top and bottom ans possibly use negative margin-top and margin-bottom for .autocomplete-richlistitem to further reduce the height of each item. You would have to test what works for you.

.autocomplete-richlistitem {
 padding-top: 0px !important;
 padding-bottom: 0px !important;
}
more options

선택된 해결법

Just in case it wasn't mentioned anywhere, the userChrome.css file is only read at startup, so it's a little inconvenient for tweaking...

You also could consider reducing the height of each row from 30 pixels to 26 pixels. The rule for that would be:

#PopupAutoCompleteRichResult .autocomplete-richlistitem {
  height: 26px !important;
  min-height: 26px !important;
}

I'm attaching a screenshot showing how this appears on mine. The border was added just to make the effect clearer and isn't included in the above rule.

Of course, if 26 pixels is still too tall, you probably could take it down to some smaller number of pixels. It gets quite cramped at 20 pixels.

more options

Regarding jscher2000's solution, I had tried the height: operand before posting, but did not know about the min-height: operand, and so my trials did not take. A height and min-height of 20px is starting to look good. (Don't use the border, though.) Thanks.