Bug 1567766 - Convert XUL textbox to HTML input in toolkit/mozapps/downloads/content/unknownContentType.xul. r=jaws

Differential Revision: https://phabricator.services.mozilla.com/D38818

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tim Nguyen 2019-07-26 21:02:41 +00:00
Родитель 31a26205a5
Коммит 7c48ef836f
3 изменённых файлов: 26 добавлений и 25 удалений

Просмотреть файл

@ -18,6 +18,7 @@
<dialog id="unknownContentType"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
onload="dialog.initDialog();" onunload="if (dialog) dialog.onCancel();"
#ifdef XP_WIN
style="width: 36em;"
@ -28,9 +29,11 @@
persist="screenX screenY"
aria-describedby="intro location whichIs type from source unknownPrompt">
<stringbundle id="strings" src="chrome://mozapps/locale/downloads/unknownContentType.properties"/>
<script src="chrome://global/content/globalOverlay.js"/>
<script src="chrome://global/content/editMenuOverlay.js"/>
<vbox flex="1" id="container">
<description id="intro">&intro2.label;</description>
<separator class="thin"/>
@ -41,7 +44,7 @@
<separator class="thin"/>
<hbox align="center">
<label id="whichIs" value="&whichIs.label;"/>
<textbox id="type" class="plain" readonly="true" flex="1" noinitialfocus="true"/>
<html:input id="type" class="plain" readonly="readonly" noinitialfocus="true"/>
</hbox>
<hbox align="center">
<label value="&from.label;" id="from"/>

Просмотреть файл

@ -10,21 +10,19 @@ description {
font-weight: bold;
}
.plain {
background-color: transparent;
background-image: none;
border: none;
}
#contentTypeImage {
margin-right: 3px;
width: 16px;
}
#type {
-moz-box-flex: 1;
}
#container > .small-indent {
margin-left: 0px;
margin-left: 0;
}
.small-indent label {
margin-left: 0px;
margin-left: 0;
}

Просмотреть файл

@ -2,6 +2,9 @@
* 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/. */
#type {
-moz-box-flex: 1;
}
#from {
margin-top: 1px;
@ -14,18 +17,15 @@
#contentTypeImage {
height: 16px;
width: 16px;
margin-top: 0px;
margin-bottom: 0px;
margin-inline-start: 0px;
margin-block: 0;
margin-inline-start: 0;
margin-inline-end: 5px;
}
.small-indent {
margin-inline-start: 15px;
margin-inline-end: 15px;
margin-inline: 15px;
}
.small-indent label {
margin-inline-start: 0px;
margin-inline-start: 0;
}