Bug 1792730 - Migrate styles of dialogs to use min-width
authorShaohua Wen <shaohua.wen@gmail.com>
Sun, 02 Oct 2022 18:18:08 -1000
changeset 5064 20f9235067da7b04a7b6f84d6892b425b525a04d
parent 5063 fd342e8e02124fd73c936534352ea6f8624e75a4
child 5065 dcb1221eff5e0ee9e4933cb51a3b4b2f3dd7f906
push id3697
push userflodolo@mozilla.com
push dateMon, 03 Oct 2022 04:18:12 +0000
bugs1792730
Bug 1792730 - Migrate styles of dialogs to use min-width
browser/browser/preferences/applicationManager.ftl
browser/browser/preferences/permissions.ftl
browser/browser/preferences/translation.ftl
--- a/browser/browser/preferences/applicationManager.ftl
+++ b/browser/browser/preferences/applicationManager.ftl
@@ -1,24 +1,24 @@
 # 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/.
 
 app-manager-window =
     .title = 应用程序详细信息
     .style = width: 30em; min-height: 20em;
-
+app-manager-window2 =
+    .title = 应用程序详细信息
+    .style = min-width: 30em; min-height: 20em;
 app-manager-remove =
     .label = 移除
     .accesskey = R
-
 # Variables:
 #   $type (String) - the URI scheme of the link (e.g. mailto:)
 app-manager-handle-protocol = 如下应用程序可用来处理“{ $type } 链接”。
-
 # Variables:
 #   $type (String) - the MIME type (e.g. application/binary)
 app-manager-handle-file = 如下应用程序可用来处理“{ $type } 内容”。
 
 ## These strings are followed, on a new line,
 ## by the URL or path of the application.
 
 app-manager-web-app-info = 此网页应用程序位于:
--- a/browser/browser/preferences/permissions.ftl
+++ b/browser/browser/preferences/permissions.ftl
@@ -1,15 +1,18 @@
 # 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/.
 
 permissions-window =
     .title = 例外
     .style = width: 45em
+permissions-window2 =
+    .title = 例外
+    .style = min-width: 45em
 permissions-close-key =
     .key = w
 permissions-address = 网站地址
     .accesskey = d
 permissions-block =
     .label = 阻止
     .accesskey = B
 permissions-session =
--- a/browser/browser/preferences/translation.ftl
+++ b/browser/browser/preferences/translation.ftl
@@ -1,40 +1,33 @@
 # 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/.
 
 translation-window =
     .title = 例外 - 翻译
     .style = width: 36em
-
+translation-window2 =
+    .title = 例外 - 翻译
+    .style = min-width: 36em
 translation-close-key =
     .key = w
-
 translation-languages-disabled-desc = 翻译不支持下列语言
-
 translation-languages-column =
     .label = 语言
-
 translation-languages-button-remove =
     .label = 移除语言
     .accesskey = R
-
 translation-languages-button-remove-all =
     .label = 移除所有语言
     .accesskey = e
-
 translation-sites-disabled-desc = 翻译不支持下列网站
-
 translation-sites-column =
     .label = 网站
-
 translation-sites-button-remove =
     .label = 移除此站点
     .accesskey = S
-
 translation-sites-button-remove-all =
     .label = 移除全部站点
     .accesskey = i
-
 translation-dialog =
     .buttonlabelaccept = 关闭
     .buttonaccesskeyaccept = C