Bug 1566281 - Fix the input[type="number"] width in AM and make the first column of the amServerSetting smaller. r=aceman,mkmelin a=jorgk BETA_68_CONTINUATION
authorRichard Marti <richard.marti@gmail.com>
Tue, 16 Jul 2019 11:56:31 +0200
branchBETA_68_CONTINUATION
changeset 35233 ac4b295f7e75adef6fd16c9206e4c6f5f1ac9f98
parent 35232 e6763c25c04949deb0dbc895c1b9edb28b4b741e
child 35234 3eed19e3c66f40d0af54381941d938f9949f109b
push id2466
push usermozilla@jorgk.com
push dateTue, 16 Jul 2019 19:08:36 +0000
treeherdercomm-beta@7334d3e992dc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaceman, mkmelin, jorgk
bugs1566281
Bug 1566281 - Fix the input[type="number"] width in AM and make the first column of the amServerSetting smaller. r=aceman,mkmelin a=jorgk
mail/themes/shared/mail/accountManage.css
mailnews/base/prefs/content/am-server.css
--- a/mail/themes/shared/mail/accountManage.css
+++ b/mail/themes/shared/mail/accountManage.css
@@ -4,18 +4,16 @@
 
 /* ===== accountManage.css ==============================================
   == Styles for the Mail Account Manager.
   ======================================================================= */
 
 @import url("chrome://messenger/skin/");
 @import url("chrome://messenger/content/bindings.css");
 
-@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-
 /* ::::: account manager :::::: */
 
 .specialFolderPickerGrid {
   margin-inline-start: 20px;
 }
 
 .fccReplyFollowsParent {
   margin-inline-start: 20px;
@@ -82,8 +80,24 @@ treechildren::-moz-tree-image(folderName
   color: HighlightText;
 }
 
 .dialogheader-title {
   margin: 0 !important;
   font-size: larger;
   font-weight: bold;
 }
+
+input[type="number"] {
+  margin-inline-start: 4px;
+}
+input[type="number"].size2 {
+  width: calc(2ch + 30px);
+}
+input[type="number"].size3 {
+  width: calc(3ch + 30px);
+}
+input[type="number"].size4 {
+  width: calc(4ch + 30px);
+}
+input[type="number"].size5 {
+  width: calc(5ch + 30px);
+}
--- a/mailnews/base/prefs/content/am-server.css
+++ b/mailnews/base/prefs/content/am-server.css
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #amServerSetting {
   display: inline-grid;
-  grid-template-columns: auto auto auto;
+  grid-template-columns: max-content auto auto;
 }
 
 #amServerSetting div:not([hidden]) {
   /* Do not override display: none when hidden. */
   display: flex;
   align-items: center;
 }