From cb20985c651c5d0cf1b46073754462221168e9e2 Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Thu, 22 Aug 2019 22:12:26 +0000 Subject: [PATCH] Bug 1575910 - Implement button positioning in login-item per design spec. r=MattN,jaws Differential Revision: https://phabricator.services.mozilla.com/D43102 --HG-- extra : moz-landing-system : lando --- .../aboutlogins/content/aboutLogins.css | 2 +- .../aboutlogins/content/aboutLogins.html | 46 ++++++++++--------- .../content/components/login-item.css | 12 ++++- 3 files changed, 37 insertions(+), 23 deletions(-) diff --git a/browser/components/aboutlogins/content/aboutLogins.css b/browser/components/aboutlogins/content/aboutLogins.css index 5563823ff503..8ba4d8aba3b4 100644 --- a/browser/components/aboutlogins/content/aboutLogins.css +++ b/browser/components/aboutlogins/content/aboutLogins.css @@ -48,7 +48,7 @@ login-item { } login-item { - max-width: 800px; + max-width: 700px; } login-footer { diff --git a/browser/components/aboutlogins/content/aboutLogins.html b/browser/components/aboutlogins/content/aboutLogins.html index 480908ef4d45..120dcf467c27 100644 --- a/browser/components/aboutlogins/content/aboutLogins.html +++ b/browser/components/aboutlogins/content/aboutLogins.html @@ -159,29 +159,33 @@
- - +
+ + +
- - +
+ + +
diff --git a/browser/components/aboutlogins/content/components/login-item.css b/browser/components/aboutlogins/content/components/login-item.css index 01050eb71451..c3def2db18aa 100644 --- a/browser/components/aboutlogins/content/components/login-item.css +++ b/browser/components/aboutlogins/content/components/login-item.css @@ -99,7 +99,13 @@ input[type="url"][readOnly]:hover:active { .detail-row { display: flex; +} + +.detail-row-contents { + display: flex; align-items: end; + flex-basis: calc(100% - 360px); /* Adds a 360px flexible spacer to the right */ + max-width: 100%; } .detail-row, @@ -119,10 +125,14 @@ input[type="url"][readOnly]:hover:active { margin-bottom: 5px; } -:host([data-editing]) .detail-cell input:not([type="checkbox"]) { +:host([data-editing]) .detail-cell input:not([readOnly]):not([type="checkbox"]) { width: 280px; } +.copy-button { + margin-bottom: 0; /* Align button at the bottom of the row */ +} + .copy-button:not([data-copied]) .copied-button-text, .copy-button[data-copied] .copy-button-text { display: none;