зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1364153 - Fix position for 'Edit and Resend' and 'Raw headers' buttons. r=Honza
MozReview-Commit-ID: yj070SeYZl --HG-- extra : rebase_source : 5419bfbbe2abcc33fe9b191c87ef175aa84907b8
This commit is contained in:
Родитель
fd99f68571
Коммит
c4216a81dc
|
@ -27,7 +27,7 @@ const MDNLink = createFactory(require("./mdn-link"));
|
|||
const PropertiesView = createFactory(require("./properties-view"));
|
||||
|
||||
const { Rep } = REPS;
|
||||
const { button, div, input, textarea } = DOM;
|
||||
const { button, div, input, textarea, span } = DOM;
|
||||
|
||||
const EDIT_AND_RESEND = L10N.getStr("netmonitor.summary.editAndResend");
|
||||
const RAW_HEADERS = L10N.getStr("netmonitor.summary.rawHeaders");
|
||||
|
@ -178,8 +178,8 @@ const HeadersPanel = createClass({
|
|||
code = status;
|
||||
}
|
||||
|
||||
let statusCodeDocURL = getHTTPStatusCodeURL(code);
|
||||
let inputWidth = status.length + statusText.length + 1;
|
||||
let statusCodeDocURL = getHTTPStatusCodeURL(status.toString());
|
||||
let inputWidth = status.toString().length + statusText.length + 1;
|
||||
|
||||
summaryStatus = (
|
||||
div({ className: "tabpanel-summary-container headers-summary" },
|
||||
|
@ -199,7 +199,9 @@ const HeadersPanel = createClass({
|
|||
}),
|
||||
statusCodeDocURL ? MDNLink({
|
||||
url: statusCodeDocURL,
|
||||
}) : null,
|
||||
}) : span({
|
||||
className: "headers-summary learn-more-link",
|
||||
}),
|
||||
button({
|
||||
className: "devtools-button",
|
||||
onClick: cloneSelectedRequest,
|
||||
|
|
Загрузка…
Ссылка в новой задаче