Bug 1598717 - Wrap the "Firefox will save this password for this website" text. r=sfoster
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Wed, 04 Dec 2019 21:08:46 +0000
changeset 505572 daf59b9083fb24d85cabe7c19f0a47d62b53cbb4
parent 505571 c1aa563394ec0c856df2cc7ef50e3c1b2d3e8085
child 505573 58bfe894a732551164c906580dada97d91e41668
push id102349
push usermozilla@noorenberghe.ca
push dateWed, 04 Dec 2019 23:41:22 +0000
treeherderautoland@58bfe894a732 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfoster
bugs1598717
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1598717 - Wrap the "Firefox will save this password for this website" text. r=sfoster Depends on D55741 Differential Revision: https://phabricator.services.mozilla.com/D55742
browser/themes/shared/autocomplete.inc.css
--- a/browser/themes/shared/autocomplete.inc.css
+++ b/browser/themes/shared/autocomplete.inc.css
@@ -85,28 +85,35 @@
 
 #PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"][selected] > .two-line-wrapper > .ac-site-icon,
 #PopupAutoComplete > richlistbox > richlistitem[originaltype="loginWithOrigin"][selected] > .two-line-wrapper > .ac-site-icon,
 #PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon[selected] {
   fill: HighlightText;
 }
 
 /* Login form autocompletion with origin showing and generated passwords */
-#PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"],
-#PopupAutoComplete > richlistbox > richlistitem[originaltype="loginWithOrigin"] {
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"] > .two-line-wrapper,
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="loginWithOrigin"] > .two-line-wrapper {
   padding: 4px;
 }
 
+#PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"] {
+  /* Workaround bug 451997 and/or bug 492645 */
+  display: block;
+}
+
+
 #PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"] > .two-line-wrapper > .labels-wrapper > .line2-label {
   font-family: monospace;
 }
 
 #PopupAutoComplete > richlistbox > richlistitem[originaltype="generatedPassword"] > .two-line-wrapper > .labels-wrapper > .generated-password-autosave {
   font-style: italic;
   font-size: 0.85em;
+  white-space: normal;
 }
 
 #PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] + richlistitem[originaltype="generatedPassword"],
 #PopupAutoComplete > richlistbox > richlistitem[originaltype="loginWithOrigin"] + richlistitem[originaltype="generatedPassword"] {
   /* Separator between logins and generated passwords. This uses --panel-separator-color from default
    * themes since autocomplete doesn't yet switch to dark. */
   border-top: 1px solid hsla(210,4%,10%,.14);
 }