зеркало из https://github.com/mozilla/gecko-dev.git
Bug #362919 --> fix wrapping issues with the remote content policy description. Remove unnecessary flex from some of the notification bar elements. sr=neil
This commit is contained in:
Родитель
3dbccadf4c
Коммит
2a3ffbed75
|
@ -2219,7 +2219,7 @@ var gMessageNotificationBar =
|
|||
// update the allow remote content for sender string
|
||||
var headerParser = Components.classes["@mozilla.org/messenger/headerparser;1"].getService(Components.interfaces.nsIMsgHeaderParser);
|
||||
var emailAddress = headerParser.extractHeaderAddressMailboxes(null, aMsgHdr.author);
|
||||
document.getElementById('allowRemoteContentForAuthorDesc').value =
|
||||
document.getElementById('allowRemoteContentForAuthorDesc').textContent =
|
||||
gMessengerBundle.getFormattedString('alwaysLoadRemoteContentForSender', [emailAddress ? emailAddress : aMsgHdr.author]);
|
||||
this.updateMsgNotificationBar(kMsgNotificationRemoteImages, true);
|
||||
},
|
||||
|
|
|
@ -2185,25 +2185,22 @@
|
|||
<hbox id="phishingBar" class="msgNotificationBar" align="center">
|
||||
<image id="phishingBarImage"/>
|
||||
<description flex="1" class="msgNotificationBarText">&phishingBarMessage.label;</description>
|
||||
<spacer flex="1"/>
|
||||
<button label="&removePhishingBarButton.label;" oncommand="MsgIsNotAScam();"/>
|
||||
</hbox>
|
||||
|
||||
<hbox id="junkBar" class="msgNotificationBar" align="center">
|
||||
<image id="junkBarImage"/>
|
||||
<description flex="1" class="msgNotificationBarText">&junkBarMessage.label;</description>
|
||||
<spacer flex="1"/>
|
||||
<button label="&junkBarButton.label;" oncommand="JunkSelectedMessages(false);"/>
|
||||
</hbox>
|
||||
|
||||
<hbox id="remoteContentBar" class="msgNotificationBar" align="center">
|
||||
<image id="remoteContentImage"/>
|
||||
<vbox flex="1">
|
||||
<description flex="1" class="msgNotificationBarText">&remoteContentMessage.label;</description>
|
||||
<label id="allowRemoteContentForAuthorDesc" class="text-link" flex="1"
|
||||
<description class="msgNotificationBarText">&remoteContentMessage.label;</description>
|
||||
<label id="allowRemoteContentForAuthorDesc" class="text-link"
|
||||
onclick="allowRemoteContentForSender();"/>
|
||||
</vbox>
|
||||
<spacer flex="1"/>
|
||||
<button label="&loadRemoteContentButton1.label;" oncommand="loadMsgWithRemoteContent();"/>
|
||||
</hbox>
|
||||
</deck>
|
||||
|
|
Загрузка…
Ссылка в новой задаче