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:
tiago 2017-05-16 15:50:27 -03:00
Родитель fd99f68571
Коммит c4216a81dc
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -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,